srendle / libfm

Library for factorization machines
GNU General Public License v3.0
1.49k stars 414 forks source link

Error while using als method #24

Closed ajitbarik1992 closed 7 years ago

ajitbarik1992 commented 7 years ago

If method is given als, code changes the param_method value to mcmc as als is an mcmc without sampling and hyperparameter inference (File : libfm.cpp, Line : 123).

While saving the model it checks for the model to be either 'sgd' or 'als', but as the param_method has been changed to 'mcmc' , it won't save model file.

CaptainXudui commented 7 years ago

I met the same problems. I use 'als' the training is ok but can't save the model. As below: Writing FM model... WARNING: load/save enabled only for SGD and ALS. Nothing will be saved.

but if I shift to 'sgd' with -learn_rate 0.1 .The model saved is ok but the training &testing are all 0.