Definition at line 35 of file RBDT.hxx.
#include <TMVA/RBDT.hxx>
◆ IndexMap
Map from XGBoost to RBDT indices.
Definition at line 71 of file RBDT.hxx.
◆ Value_t
◆ RBDT()
| TMVA::Experimental::RBDT::RBDT |
( |
| ) |
|
|
privatedefault |
Private default constructor, used by the public LoadXGBoost() factory.
◆ Compute() [1/3]
| Vector TMVA::Experimental::RBDT::Compute |
( |
const Vector & | x | ) |
const |
|
inline |
Compute model prediction on a single event.
The method is intended to be used with std::vectors-like containers, for example RVecs.
Definition at line 44 of file RBDT.hxx.
◆ Compute() [2/3]
Compute model prediction on a flat batch of events.
The input must be flat row-major with cols features per event and the output is a flat row-major vector with one row of outputs per event, contiguous at y[row * nOut + k]. nOut is the number of model output values per event: one for regression and binary classification models, the number of classes for multiclass ones.
Definition at line 98 of file RBDT.cxx.
◆ Compute() [3/3]
| std::vector< Value_t > TMVA::Experimental::RBDT::Compute |
( |
std::vector< Value_t > const & | x | ) |
const |
|
inline |
Compute model prediction on a single event.
Definition at line 53 of file RBDT.hxx.
◆ ComputeImpl()
◆ correctIndices()
RBDT uses a more efficient representation of the BDT in flat arrays.
This function translates the indices to the RBDT indices. In RBDT, leaf nodes are stored in separate arrays. To encode this, the sign of the index is flipped.
Definition at line 176 of file RBDT.cxx.
◆ EvaluateBinary()
◆ LoadXGBoost()
Construct an RBDT from an XGBoost model in its native JSON serialization.
This reads the structured model that XGBoost writes with Booster.save_model(). That format stores each tree as a set of parallel arrays and references features by index, so no feature-name resolution is needed. Everything else (objective, base score, number of classes) is taken from the file, which makes this a self-contained, Python-free entry point.
Definition at line 226 of file RBDT.cxx.
◆ Softmax()
◆ terminateTree()
◆ fBaseResponses
| std::vector<Value_t> TMVA::Experimental::RBDT::fBaseResponses |
|
private |
◆ fBaseScore
| Value_t TMVA::Experimental::RBDT::fBaseScore = 0.0 |
|
private |
◆ fCutIndices
| std::vector<unsigned int> TMVA::Experimental::RBDT::fCutIndices |
|
private |
◆ fCutValues
| std::vector<Value_t> TMVA::Experimental::RBDT::fCutValues |
|
private |
◆ fLeftIndices
| std::vector<int> TMVA::Experimental::RBDT::fLeftIndices |
|
private |
◆ fLogistic
| bool TMVA::Experimental::RBDT::fLogistic = false |
|
private |
◆ fResponses
| std::vector<Value_t> TMVA::Experimental::RBDT::fResponses |
|
private |
◆ fRightIndices
| std::vector<int> TMVA::Experimental::RBDT::fRightIndices |
|
private |
◆ fRootIndices
| std::vector<int> TMVA::Experimental::RBDT::fRootIndices |
|
private |
◆ fTreeNumbers
| std::vector<int> TMVA::Experimental::RBDT::fTreeNumbers |
|
private |
The documentation for this class was generated from the following files: