Currently I am reading "The Hundred-Page Machine Learning Book" and ran into some notation issues. The book states the following:
A variable can have two or more indices, like this: $x^{(j)}_i$ or like this $x^{(k)}_{i,j}$. For example, in neural networks, we denote as $x^{(j)}_{l,u}$ the input feature j of unit u in layer l.
Though, I am having issues understanding this index notation. I can understand $x^{(j)}$ where x is the array and j is the single index and if x = [0, 2] then $x^{(0)}$ (where j = 0) returns the value 0 and $x^{(1)}$ returns 2.
To illustrate my understanding of $x^{(j)}$, I can write it in code:
int[] array = {0, 2};
System.out.println(array[0]);
It is easy to see how $x^{(j)}$ works. However, the multiple indices trip me up ($x^{(j)}_i$ and $x^{(j)}_{l,u}$ for example). I'm not sure which index is of the first, second, or third (etc.) degree.
int[][] array = {{0, 2}, {1, 3}};
System.out.println(array[0][1]);
This is an example of $x^{(j)}_i$. Though, I'm not sure if the first index is j or i or which is which.
Using the notation $x^{(j)}_i$, is this correct?
System.out.println(array[i][j]);
Or, is this correct?
System.out.println(array[j][i]);
And what about when there are 3 or more indices (the question above would still apply)? Then what?
I suppose I don't know the name of this notation either -- the book didn't specify. I'm relatively new to notation, so please forgive me if this is a simple solution or complicated & convoluted question. To summarize, what is the name of this notation? And how do I use this notation properly? How do I know which letter maps to which index?
Some thoughts: Using my previous knowledge of machine learning I understand that the array, $x^{(j)}_{l,u}$, should be layer first, feature second, unit third (something like array[layer][feature][unit]). Though the notation places these indices in random spots -- it appears random to me. Though, it is crucial to know the order. Without this previous knowledge it would be impossible. If I encounter the notation in the future, which is inevitable, I will have no clue what to do.