Definition at line 37 of file RBDT.hxx.
|
static void | correctIndices (std::span< int > indices, IndexMap const &nodeIndices, IndexMap const &leafIndices) |
| RBDT uses a more efficient representation of the BDT in flat arrays.
|
|
static RBDT | LoadText (std::istream &is, std::vector< std::string > &features, int nClasses, bool logistic, Value_t baseScore) |
|
static void | terminateTree (TMVA::Experimental::RBDT &ff, int &nPreviousNodes, int &nPreviousLeaves, IndexMap &nodeIndices, IndexMap &leafIndices, int &treesSkipped) |
|
#include <TMVA/RBDT.hxx>
◆ IndexMap
Map from XGBoost to RBDT indices.
Definition at line 70 of file RBDT.hxx.
◆ Value_t
◆ RBDT() [1/2]
TMVA::Experimental::RBDT::RBDT |
( |
| ) |
|
|
default |
◆ RBDT() [2/2]
TMVA::Experimental::RBDT::RBDT |
( |
const std::string & |
key, |
|
|
const std::string & |
filename |
|
) |
| |
Construct backends from model in ROOT file.
Definition at line 357 of file RBDT.cxx.
◆ Class()
static TClass * TMVA::Experimental::RBDT::Class |
( |
| ) |
|
|
static |
- Returns
- TClass describing this class
◆ Class_Name()
static const char * TMVA::Experimental::RBDT::Class_Name |
( |
| ) |
|
|
static |
- Returns
- Name of this class
◆ Class_Version()
static constexpr Version_t TMVA::Experimental::RBDT::Class_Version |
( |
| ) |
|
|
inlinestaticconstexpr |
- Returns
- Version of this class
Definition at line 92 of file RBDT.hxx.
◆ Compute() [1/3]
template<typename Vector >
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 52 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 61 of file RBDT.hxx.
◆ ComputeImpl()
void TMVA::Experimental::RBDT::ComputeImpl |
( |
const Value_t * |
array, |
|
|
Value_t * |
out |
|
) |
| const |
|
private |
◆ correctIndices()
void TMVA::Experimental::RBDT::correctIndices |
( |
std::span< int > |
indices, |
|
|
IndexMap const & |
nodeIndices, |
|
|
IndexMap const & |
leafIndices |
|
) |
| |
|
staticprivate |
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 191 of file RBDT.cxx.
◆ DeclFileName()
static const char * TMVA::Experimental::RBDT::DeclFileName |
( |
| ) |
|
|
inlinestatic |
- Returns
- Name of the file containing the class declaration
Definition at line 92 of file RBDT.hxx.
◆ EvaluateBinary()
◆ IsA()
TClass * TMVA::Experimental::RBDT::IsA |
( |
| ) |
const |
|
inline |
◆ LoadText() [1/2]
◆ LoadText() [2/2]
◆ Softmax()
void TMVA::Experimental::RBDT::Softmax |
( |
const Value_t * |
array, |
|
|
Value_t * |
out |
|
) |
| const |
|
private |
◆ Streamer()
void TMVA::Experimental::RBDT::Streamer |
( |
TBuffer & |
| ) |
|
◆ StreamerNVirtual()
void TMVA::Experimental::RBDT::StreamerNVirtual |
( |
TBuffer & |
ClassDef_StreamerNVirtual_b | ) |
|
|
inline |
◆ 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: