Closed pandey-anurag closed 3 years ago
@pandey-anurag
Doing np.sum(norm, axis=1)
doesn't give the norm of each of norm
's row. Do instead np.linalg.norm(norm, axis=1, keepdims=True)
.
Output:
[[1.]
[1.]
[1.]]
Each row vector are normalized.
@dranaivo I understand, I performed L1 norm(since all values were positive hence sum) instead of L2 right?
Hello, I am trying to understand the use of
here
I tried using the same approach, but I do not get normalized vectors.
Output:
Please advice.