CastellanZhang / lambdaFM

Multi-thread implementation of lambdaFM with FTRL for ranking problem. LambdaFM is a learning-to-rank algorithm by combining LambdaRank and Factorization Machines.
MIT License
111 stars 31 forks source link

执行lambdafm_predict抛出异常 #8

Closed supersush closed 5 years ago

supersush commented 5 years ago

hi,CastellanZhang: 用lambdafm_train函数训练出模型之后,执行lambdafm_predict调用模型进行预测时抛出异常: terminate called after throwing an instance of 'std::out_of_range' what(): stod 已放弃(吐核)

请问这个问题如何解决?谢谢!

CastellanZhang commented 5 years ago

把你训练和预测使用的参数贴一下,怀疑是参数设置有问题。

supersush commented 5 years ago

问题找到了,训练生成的模型文件里出现了3.70407e-310这种参数,predict的时候这种参数用stod方法转double的时候溢出了