Skip to content

My model from "river.reco" does not find 'user' and 'item' arguments in the MovieLens dataset #1499

Answered by TxusLopez
TxusLopez asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks @gbolmier for your response. I get the same error with that. But I was trying to do the same without using the evaluate.iter_progressive_val_score by doing the process manually with a simple iteration and detailing the params x,y,user,item:

#Training
for index, row in X_train.iterrows():
    user = row['user']
    item = row['item']
    feats = row.to_dict()
    targ = y_train[index]

    baseline_model = baseline_model.learn_one(x=feats, y=targ, user=user, item=item)

, being X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.25, random_state=42) and

X = df_movielens.drop('rating', axis=1)  
y = df_movielens['rating']       

, where df_movielens is just a DataF…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@gbolmier
Comment options

Answer selected by TxusLopez
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants