I traning and testing data with xgboost in python, then use leaves in production env.
The more infos are there:
In Python
xgb testing, The data structure that I set up with pd.DataFrame is
[0:value1 1:v2, 2:v3, ... , n:v(n+1)]
the value1 is any value int type. and v2, ... , v(n+1) is float64 type. The 0 is prediction value.
This result is testing result.
And this structure:
[feature1:v2, f2:v3, ... , f(n):v(n+1)]
This result is NOT testing result.
In Golang
and I use leaves XGEnsembleFromFile->model.PredictCSR() also the result is NOT testing result.
I have tried to find how to solve it for over 5h like add {0:0} to first features group, but for my ridiculous low English level and Math level I can't find it.
What's wrong with my testing data = =
I traning and testing data with xgboost in python, then use leaves in production env. The more infos are there:
In Python xgb testing, The data structure that I set up with
pd.DataFrame
is[0:value1 1:v2, 2:v3, ... , n:v(n+1)]
thevalue1
is any valueint
type. andv2, ... , v(n+1)
isfloat64
type. The0
is prediction value. This result is testing result.And this structure:
[feature1:v2, f2:v3, ... , f(n):v(n+1)]
This result is NOT testing result.In Golang and I use leaves
XGEnsembleFromFile->model.PredictCSR()
also the result is NOT testing result.I have tried to find how to solve it for over 5h like add {0:0} to first features group, but for my ridiculous low English level and Math level I can't find it. What's wrong with my testing data = =