While using non-negative matrix factorization for generating recommendations, how do I reconstruct data for a new user?
I am following this equation data.dot(H.T.dot(np.linalg.pinv(H.dot(H.T))).dot(H))
for reconstruction where H
represents the latent components and data
consists of the new data containing missing entries.
But seem to be going wrong somewhere, since I do not get the expected results (those from other methods such as sklearn NMF, specifically the inverse_transform
method).