
If I use an int64 as input of the userId I got this error message:
Traceback (most recent call last):
File "/Users/martijn/Documents/Doctoraat/Lenskit/WebRec/ALS.py", line 61, in <module>
recs = rec.recommend(first, 10) #Gives error
File "/Users/martijn/anaconda3/envs/condaEnv/lib/python3.7/site-packages/lenskit/algorithms/basic.py", line 281, in recommend
scores = self.predictor.predict_for_user(user, candidates, ratings)
File "/Users/martijn/anaconda3/envs/condaEnv/lib/python3.7/site-packages/lenskit/algorithms/als.py", line 227, in predict_for_user
return self.score_by_ids(user, items)
File "/Users/martijn/anaconda3/envs/condaEnv/lib/python3.7/site-packages/lenskit/algorithms/mf_common.py", line 102, in score_by_ids
iidx = self.lookup_items(items)
File "/Users/martijn/anaconda3/envs/condaEnv/lib/python3.7/site-packages/lenskit/algorithms/mf_common.py", line 68, in lookup_items
return self.item_index_.get_indexer(items)
File "/Users/martijn/anaconda3/envs/condaEnv/lib/python3.7/site-packages/pandas/core/indexes/base.py", line 3239, in get_indexer
target = target.astype(object)
File "/Users/martijn/anaconda3/envs/condaEnv/lib/python3.7/site-packages/pandas/core/indexes/base.py", line 1286, in astype
return self.copy() if copy else self
File "/Users/martijn/anaconda3/envs/condaEnv/lib/python3.7/site-packages/pandas/core/indexes/base.py", line 978, in copy
new_index = self._shallow_copy()
File "/Users/martijn/anaconda3/envs/condaEnv/lib/python3.7/site-packages/pandas/core/indexes/base.py", line 516, in _shallow_copy
if not len(values) and 'dtype' not in kwargs:
TypeError: len() of unsized object