leaves icon indicating copy to clipboard operation
leaves copied to clipboard

Prediction result always be 0.000

Open Lirunhua opened this issue 6 years ago • 1 comments

I use leaves to load my lightgbm model and predict instances, the results are always 0.00, while use python to predict, the result is not. Any one meet the problem ? The type of feature including numerical and categorical

Lirunhua avatar Jun 25 '19 05:06 Lirunhua

Can you show your go code?

Note, that PredictSingle will return 0.0 in case of error: https://godoc.org/github.com/dmitryikh/leaves#Ensemble.PredictSingle

Try to use, Predict https://godoc.org/github.com/dmitryikh/leaves#Ensemble.Predict and check the error returned

dmitryikh avatar Jul 12 '19 10:07 dmitryikh