In this Python Basic exercise,
I used np.subtract()
do the vector subtract: y_hat minus y
then i used np.abs()
on the resulting vector.
loss = np.abs( np.subtract(y_hat, y) )
Can you give me a hint on how to get to the float so that I can return it?
Thanks!