You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an issue when i compute roc auc, ti's return always NAN for all the value in the matrix.
`interactions=interactions.tocsr().astype(np.float32)
user_features=interactions.tocsr().astype(np.float32)
item_features=interactions.tocsr().astype(np.float32)
train, test = random_train_test_split(interactions, test_percentage=0.2, random_state=42)
epochs = 30
# Train model
model = LightFM(loss='bpr', no_components=200, max_sampled=100, learning_schedule='adagrad', item_alpha=1e-6, learning_rate=0.001)
for epoch in range(epochs):
model.fit_partial(train, user_features=user_features, item_features=item_features, num_threads=3, epochs=1)
print(auc_score(model, test, train_interactions = train, user_features=user_features, item_features=item_features, check_intersections=True).mean())`
I check the train and test matrix there is no Null or Nan so I don't understand.
Can you help me on this case.
The text was updated successfully, but these errors were encountered:
apujol-accenture
changed the title
Auc evalutation return always null
Auc evalutation return always nan
Oct 27, 2023
Hello,
I have an issue when i compute roc auc, ti's return always NAN for all the value in the matrix.
`interactions=interactions.tocsr().astype(np.float32)
user_features=interactions.tocsr().astype(np.float32)
item_features=interactions.tocsr().astype(np.float32)
I check the train and test matrix there is no Null or Nan so I don't understand.
Can you help me on this case.
The text was updated successfully, but these errors were encountered: