A replacement for the TMVA::Reader legacy interface.
Performs inference for TMVA models stored as XML files. For neural network inference consider using SOFIE instead.
Definition at line 138 of file RReader.hxx.
|
| | RReader (const std::string &path) |
| | Create TMVA model from XML file.
|
| |
| std::vector< float > | Compute (const std::vector< float > &x) |
| | Compute model prediction on vector.
|
| |
| std::vector< float > | Compute (std::span< const float > x) |
| | Compute model prediction on a flat batch of events The input is the concatenation of the events' input variables and spectators in row-major layout and the returned vector is flat row-major as well, with size nEvents * numClasses (numClasses = 1 for classification and regression) and the outputs of one event contiguous at y[event * numClasses ...].
|
| |
| std::vector< std::string > | GetSpectatorNames () |
| |
| std::vector< std::string > | GetVariableNames () |
| |
#include <TMVA/RReader.hxx>
◆ RReader()
| TMVA::Experimental::RReader::RReader |
( |
const std::string & | path | ) |
|
|
inline |
◆ Compute() [1/2]
| std::vector< float > TMVA::Experimental::RReader::Compute |
( |
const std::vector< float > & | x | ) |
|
|
inline |
Compute model prediction on vector.
Definition at line 180 of file RReader.hxx.
◆ Compute() [2/2]
| std::vector< float > TMVA::Experimental::RReader::Compute |
( |
std::span< const float > | x | ) |
|
|
inline |
Compute model prediction on a flat batch of events The input is the concatenation of the events' input variables and spectators in row-major layout and the returned vector is flat row-major as well, with size nEvents * numClasses (numClasses = 1 for classification and regression) and the outputs of one event contiguous at y[event * numClasses ...].
Definition at line 222 of file RReader.hxx.
◆ GetSpectatorNames()
| std::vector< std::string > TMVA::Experimental::RReader::GetSpectatorNames |
( |
| ) |
|
|
inline |
◆ GetVariableNames()
| std::vector< std::string > TMVA::Experimental::RReader::GetVariableNames |
( |
| ) |
|
|
inline |
◆ fAnalysisType
◆ fNumClasses
| unsigned int TMVA::Experimental::RReader::fNumClasses |
|
private |
◆ fReader
| std::unique_ptr<Reader> TMVA::Experimental::RReader::fReader |
|
private |
◆ fSpectatorExpressions
| std::vector<std::string> TMVA::Experimental::RReader::fSpectatorExpressions |
|
private |
◆ fSpectators
| std::vector<std::string> TMVA::Experimental::RReader::fSpectators |
|
private |
◆ fSpectatorValues
| std::vector<float> TMVA::Experimental::RReader::fSpectatorValues |
|
private |
◆ fVariableExpressions
| std::vector<std::string> TMVA::Experimental::RReader::fVariableExpressions |
|
private |
◆ fVariables
| std::vector<std::string> TMVA::Experimental::RReader::fVariables |
|
private |
◆ fVariableValues
| std::vector<float> TMVA::Experimental::RReader::fVariableValues |
|
private |
◆ name
| const char* TMVA::Experimental::RReader::name = "RReader" |
|
private |
The documentation for this class was generated from the following file: