Open azzelena opened 3 years ago
I'm not really understanding the table you've shared. How does your side information contain both a person id and a product id? I would expect two separate SFrames: one with the side information for persons and one with the side information for products.
Anyways, there's no way I know to do what you want. NaN
values are not allowed in side information. However you don't need to provide side information for every item/user in the observation data. You can just call dropna()
on your side information and use that.
Of course, then you're not using the information when some values in a row are not NaN
. One possible solution is to impute these missing values, i.e. set the NaN
values to some constant such as the mean or mode.
When I add user_data (item_data) in turicreate.recommender.ranking_factorization_recommender.create (side information for the user/item) and some of these values==NaN, I get error.
Often some of users or items have the only one value in a side data. For example:
Is there any way to use only one feature if other == NaN?
Thanks.