Definition at line 36 of file RBDT.hxx.
#include <TMVA/RBDT.hxx>
◆ IndexMap
Map from XGBoost to RBDT indices.
Definition at line 65 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 45 of file RBDT.hxx.
◆ Compute() [2/3]
◆ 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 54 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 181 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 231 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: