dmlc / xgboost

Scalable, Portable and Distributed Gradient Boosting (GBDT, GBRT or GBM) Library, for Python, R, Java, Scala, C++ and more. Runs on single machine, Hadoop, Spark, Dask, Flink and DataFlow
https://xgboost.readthedocs.io/en/stable/
Apache License 2.0
26.18k stars 8.71k forks source link

Can I view individual XGBRFRegressor tree predictions? #9999

Open tbenacci opened 8 months ago

tbenacci commented 8 months ago

If I make an XGBRFRegressor model and fit it to train data, is there a way to view the tree predictors (number of trees = n_estimators) before they are bagged to output the regression prediction? It would be nice to have a histogram of predictions to analyze for each row of test data.

trivialfis commented 8 months ago

unfortunately, it's not supported. Currently, XGBoost splits the model by boosting layers.

tbenacci commented 8 months ago

UUAaahg. I see, thanks!