Ex. 6, normalize_rows question

Hello,

in the programming assignment, we had a 23 Matrix, which should output 12 row vector when it is normalized on row-basis.

in the programming exercise, the output was 1*3 column vector, which should appear if we done column-based regularization ( and in fact we 've done row-based one

and I 've tried in a separate cell with a separate variable and same array and gave me the expected output.

Thanks.

1 Like

No, I think the norm vector is a 2 x 1 vector. Then you divide the original 2 x 3 matrix by that 2 x 1 vector (using broadcasting) and you now have a 2 x 3 matrix in which the norm of each row is 1.

1 Like