matrix_factorization_recommenders icon indicating copy to clipboard operation
matrix_factorization_recommenders copied to clipboard

the as_matrix method is deprecated since 0.23.0, so you should use to_numpy instead.

Open sohamnandi77 opened this issue 4 years ago • 2 comments

In [61]: R = R_df.as_matrix()

the as_matrix method is deprecated since 0.23.0, so you should use to_numpy instead.

R = R_df.to_numpy()

sohamnandi77 avatar Oct 05 '20 06:10 sohamnandi77

Thanks for filing an issue! This notebook is not kept up-to-date, so it's alright that it uses code that a future pandas version chose to deprecate. I'll leave this issue up for context in case anyone else runs into it.

beckernick avatar Oct 05 '20 12:10 beckernick

R = R_df.to_numpy() might not be enough. I had to R_df.to_numpy(dtype=np.int16)

yardenshoham avatar Feb 04 '23 12:02 yardenshoham