hi,
I trained a model using xgb.train() with xgboost 0.9.0.
Then I found the predictions are different whether I passed a numpy.array or a list to DMatrix.
(1)a1 = [[0]*178]
a1 = np.array(a1)
b1 = xgboost.DMatrix(a1)
print (model.predict(b1))
(2)a1 = [[0]*178]
b1 = xgboost.DMatrix(a1)
print (model.predict(b1))
the result of (1) is [-0.0454635]
while the result of (2) is [-0.02057922]
now I convert the model to a “.so” file and use it in C++ to predict. The only result I can get is (2). Since there is no numpy or dmatrix in C++(I guess), is there any ways I can get result (1) in C++? Thanks!