Item-item collaborative filtering with binary or unary data

Victor Köhler

1567

# 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.