Item-item collaborative filtering with binary or unary data
Victor Köhler

# magnitude = sqrt(x2 + y2 + z2 + …)

magnitude = np.sqrt(np.square(data_items).sum(axis=1))

Shouldn’t you sum across X-axis? Summing across Y-axis gives you sums for each artist.

Like what you read? Give Branislav Makan a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.