-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
factors for cold start items #44
Comments
pip install cython==0.29.36 numpy scipy
pip uninstall -y cmfrec # if you had installed it before
pip install --no-use-pep517 cmfrec Nevertheless, I did some testing on my end and did not find any speed difference from using older cython or newer cython. Are you able to provide an example and timings that show a slowdown? |
Also, I've just pushed some updates for the newer cython idiosyncrachies just in case - could you give it a try and confirm if it also runs slower for you? pip install git+https://github.com/david-cortes/cmfrec.git |
Hi David, Thanks, I am still collecting some data and examples. A follow up question to item_factors_cold: ValueError Traceback (most recent call last) File ~/miniconda3/lib/python3.11/site-packages/cmfrec/init.py:5091, in CMF_implicit.item_factors_cold(self, I, I_col, I_val) File ~/miniconda3/lib/python3.11/site-packages/cmfrec/init.py:1960, in _CMF._item_factors_cold(self, I, I_bin, I_col, I_val) File ~/miniconda3/lib/python3.11/site-packages/cmfrec/init.py:552, in CMF.process_new_U(self, U, U_col, U_val, U_bin, is_I) ValueError: Dimensions of I don't match with earlier data. Here I_new is a numpy array of shape (10,30). What did I do wrong? What does earlier data mean here. I assume that we only need features dimensions equal (which are both 30). |
Thanks for pointing this out - there was an error (different from what you're seeing there) which is now fixed: pip install cmfrec==3.5.1.post6 Note that the method |
Thanks. I confirmed that version 3.5.1.post6 works for |
Hi,
I have the following questions:
Assume that I have three matrices:
I first trained the model by calling model.fit(X=X, I=I). This gave me factors matrices A,B,D where X ~ AB^T and I ~ BD^T.
How can I get the new item factors B_new where I_new ~ B_new*D^T? I feel like factors_multiple is the most possible function but it requires the matrix X so I am not sure.
https://pypi.org/project/Cython/#history
But when I rolled back to the old version, the fitting time is still very slow.
Thanks in advance.
The text was updated successfully, but these errors were encountered: