4. squeeze - contradictory explanation
The explanation is contradictory:
4:21 - "however, this output is a 0d array rather than a scalar"
Showing:
Showing:
matrix_2ds[0:1,0:1].squeeze()
--> array(1)
--> array(1)
6:10 - "as we stated earlier, this means that all the outputs of the squeeze method are scalars".
Showing the same thing:
matrix_2ds[0:1,0:1].squeeze().shape
--> ()
matrix_2ds[0:1,0:1].squeeze().shape
--> ()
So which is it, scalar, 0d array, or both/the same?
0 answers ( 0 marked as helpful)