Predict using user features
See original GitHub issueHello, I would like to ask how we can predict using user features instead of user ids. Because having user ids means that lightFM needs to train with that user first. However, if I use user features, I can use training data of user with similar features, and recommend similar items.
Both predict and predict_rank have require use ids. Is there any way I can use user features to predict instead?
predict(user_ids, item_ids, item_features=None, user_features=None, num_threads=1)
predict_rank(test_interactions, train_interactions=None, item_features=None, user_features=None, num_threads=1)
Issue Analytics
- State:
- Created 6 years ago
- Reactions:5
- Comments:10
Top Results From Across the Web
Feature Selection : Identifying the best input features
The wrapper method searches for the best subset of input features to predict the target variable. It selects the features that provide the...
Read more >Using Customer and Product Features in Recommender ...
The entire idea behind recommender systems is to predict, for the given pair of user and item, whether this user will be interested...
Read more >How to use predicted features in prediction? - Cross Validated
I want to train my model with the feature of the carry over, but I'm not sure how I ... and then predict...
Read more >How to Connect Model Input Data With Predictions for ...
How to Connect Model Input Data With Predictions for Machine Learning ... Fitting a model to a training dataset is so easy today...
Read more >How to use a model to do predictions with Keras - ActiveState
Keras models can be used to detect trends and make predictions, using the model. · In this example, a model is created and...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
You’re close. Remember, user and item ids are indices into their respective feature matrices. In this case, your item matrix has three rows, so you’d need to do:
Hope this helps!