matrix_factorization_recommenders
matrix_factorization_recommenders copied to clipboard
the as_matrix method is deprecated since 0.23.0, so you should use to_numpy instead.
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()
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.
R = R_df.to_numpy()
might not be enough. I had to R_df.to_numpy(dtype=np.int16)