dmitryikh / leaves

pure Go implementation of prediction part for GBRT (Gradient Boosting Regression Trees) models from popular frameworks
MIT License
427 stars 72 forks source link

Prediction result always be 0.000 #61

Open Lirunhua opened 5 years ago

Lirunhua commented 5 years ago

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

dmitryikh commented 5 years ago

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