Comments (6)
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
```
from lightgbm.
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?
from lightgbm.
OH, I also see you have call a new booster and merge.
from lightgbm.
is there any member can help answer my question?
from lightgbm.
Please look through what Booster.refit()
in the Python package does.
LightGBM/python-package/lightgbm/basic.py
Line 4747 in 88cec47
from lightgbm.
Related Issues (20)
- [R-package] lgb.cv() fails with categorical features HOT 3
- [python-package] Can't continued training on Dataset with SequenceDataset(lgb.Sequence)
- Q:error in predict
- [python-package] CUDA version not truly installing HOT 4
- Continue traing by C_API HOT 2
- Failed to build by docker HOT 3
- Memory not being returned to OS on calling C.LGBM_BoosterFree HOT 15
- checkpoint can't be loaded on MacOS with M3 HOT 12
- [python-package] First metric is not used for early stopping
- GPU-built classifier crashes on "Compiling OpenCL Kernel with x bins"
- [python-package] bug : dump_model json loads failed HOT 1
- [R-package] latest {Matrix} requires R>=4.4.0
- [RFC] remove 'categorical_feature' and 'feature_name' parameters in cv() and train() HOT 6
- [RFC] remove HDFS support? HOT 3
- (transferred) [python-package] how to install the Python package from source? HOT 5
- [RFC] provide Python/R implementations of all the built-in objectives? HOT 1
- [python-package] Error in installation in github MacOS runners HOT 1
- [docs] readthedocs builds are broken HOT 1
- CMake `__BUILD_FOR_R` fails to find R source files HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lightgbm.