Closed joy5075 closed 3 years ago
The build_item_features() method takes an iterable of the form (item id, [list of feature names]) or (item id, {feature name: feature weight}). It might also be helpful to work through the example notebook to explore in which format feature values are provided: https://github.com/lyst/lightfm/blob/master/examples/stackexchange/hybrid_crossvalidated.ipynb
I kindly suggest that you provide a minimal working code example that highlights your specific problem. People often won't take the time to look at large dumps of code.
I tried to refactor the docs a bit to clarify this. You can have a look and comment here: https://github.com/lyst/lightfm/pull/574
Closing this. Feel free to reopen if your issue isn't solved.
Hello, I'm using the wine data to make wine recommendation system.
But, feature which use for item meta has multiple values. For example, grapes feature's value is [Shiraz/Syrah, Grenache, Mourvedre], taste's value is [citrus, lemon, lime, lemon zest, grapefruit] however, when I make item_feature, error(TypeError: unhashable type: 'list') occurs.
how can I use features which has multiple values(list format)? Appreciate your help!