Open PaulSteffen-betclic opened 1 year ago
@PaulSteffen-betclic
You might edit(add new features) your test_item_features
manually before you call the predict
method.
csr_matrix and vstack from scipy.sparse helps you to handle with this sparse matrix
Hello,
Thanks for this nice work, very efficient and designed for real wrold use cases.
Concerning the cold-start issue, you indicate in the documentation to call _fitpartial method of the lightfm.data.Dataset class, and to "resize your LightFM model to be able to use the new features". What does "resize your LightFM model to be able to use the new features" really means ?
First I train the model
After, I would like to predict using this model but for new items, with new features, unseen during this 1st fit. I fit again partially my Dataset without issue ...
... but I get an error when predicting with the model
and I get the following error: "ValueError: The item feature matrix specifies more features than there are estimated feature embeddings: 3623 vs 4985" where 3623 is the number of item features saw during the fit and 4985 is the number of features after adding new items with new features.
Then, is there a way to "resize the model" as suggested in the documentation ?
Thanks