You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The subject header says: Files to turn in : z_score.py
But the instructions says: In the zscore.py file, write the zscore function (without the underscore)
Undefined numpy
In the examples, X is defined while calling numpy, but Y is defined while calling np
Mismatching Y shape
Still in the examples, Y is declared as follows: Y = np.array([2, 14, -13, 5, 12, 4, -19]).reshape((-1, 1))
Thus its shape is (2, 1) and not (2, ) as X.
The problem is that the expected value is: array([ 0.11267619, 1.16432067, -1.20187941, 0.37558731, 0.98904659, 0.28795027, -1.72770165]) which shape is (7, ), IMO it should be (7, 1) so the zscore function can copy the incomming array's shape.
Fixed on:
Github
Gitlab
The text was updated successfully, but these errors were encountered:
There are 3 minors issues:
Turn in filename
The subject header says:
Files to turn in : z_score.py
But the instructions says:
In the zscore.py file, write the zscore function
(without the underscore)Undefined numpy
In the examples, X is defined while calling
numpy
, but Y is defined while callingnp
Mismatching Y shape
Still in the examples, Y is declared as follows:
Y = np.array([2, 14, -13, 5, 12, 4, -19]).reshape((-1, 1))
Thus its shape is
(2, 1)
and not(2, )
as X.The problem is that the expected value is:
array([ 0.11267619, 1.16432067, -1.20187941, 0.37558731, 0.98904659, 0.28795027, -1.72770165])
which shape is(7, )
, IMO it should be(7, 1)
so the zscore function can copy the incomming array's shape.Fixed on:
The text was updated successfully, but these errors were encountered: