Open eightreal opened 4 months ago
In python , I see some example code like
refit(data=x_test, label=y_test)
but , how it work in C_Api, how can I get the input
const int32_t* leaf_preds,
int32_t nrow,
int32_t ncol
I read the python source code So, I need call the LGBM_BoosterPredictForMat to get the leaf index (by my new dataset ) the input leaf index for refit , Is the workflow correct? and whether should I call the LGBM_BoosterResetTrainingData before call refit?
OH, I also see you have call a new booster and merge.
is there any member can help answer my question?
Please look through what Booster.refit()
in the Python package does.
I can do refit by this workflow, but I check that you create a empty model and merge old model, so can I reset training dataset directly?
Hello , I have see the LGBM_BoosterRefit api in C-API is there more description about it? a example code is much better, I 'm try to do continue learning by new data , but there is few doc.