Open chrisbangun opened 6 years ago
I have the same problem but with sgd.FMClassification
Is there anyone know how to solve it?
Unfortunately many issues can lead to nan predictions.
bpr.FMRecommender
and sgd.FMClassification
use stochastic gradient based solvers for the parameter estimation (fit). This means they are sensitive to the step_size
and initial values init_stdev
hyper-parameter. Getting this values wrong can often lead to 'nan' predictions.bpr
implementation is not very robust and should currently only be used for small scale experiments.@todor-markov I would recomment to use use the als/mcmc solver instead.
Hi,
I follow the step-by-step provided in the test_ranking.py in order to use fastFM for ranking problem. Using my own dataset, the model returns
nan
prediction value.the X_test is simply the copy of my training data. what would be the case where fm model returns nan? any help would really be appreciated. thanks