Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TMVA::Experimental::RReader Class Reference

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 115 of file RReader.hxx.

Public Member Functions

 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.
 
RTensor< float > Compute (RTensor< float > &x)
 Compute model prediction on input RTensor.
 
std::vector< std::string > GetVariableNames ()
 

Private Attributes

Internal::AnalysisType fAnalysisType
 
std::vector< std::string > fExpressions
 
unsigned int fNumClasses
 
std::unique_ptr< ReaderfReader
 
std::vector< float > fValues
 
std::vector< std::string > fVariables
 
const char * name = "RReader"
 

#include <TMVA/RReader.hxx>

Constructor & Destructor Documentation

◆ RReader()

TMVA::Experimental::RReader::RReader ( const std::string &  path)
inline

Create TMVA model from XML file.

Definition at line 127 of file RReader.hxx.

Member Function Documentation

◆ Compute() [1/2]

std::vector< float > TMVA::Experimental::RReader::Compute ( const std::vector< float > &  x)
inline

Compute model prediction on vector.

Definition at line 147 of file RReader.hxx.

◆ Compute() [2/2]

RTensor< float > TMVA::Experimental::RReader::Compute ( RTensor< float > &  x)
inline

Compute model prediction on input RTensor.

Definition at line 181 of file RReader.hxx.

◆ GetVariableNames()

std::vector< std::string > TMVA::Experimental::RReader::GetVariableNames ( )
inline

Definition at line 226 of file RReader.hxx.

Member Data Documentation

◆ fAnalysisType

Internal::AnalysisType TMVA::Experimental::RReader::fAnalysisType
private

Definition at line 123 of file RReader.hxx.

◆ fExpressions

std::vector<std::string> TMVA::Experimental::RReader::fExpressions
private

Definition at line 120 of file RReader.hxx.

◆ fNumClasses

unsigned int TMVA::Experimental::RReader::fNumClasses
private

Definition at line 121 of file RReader.hxx.

◆ fReader

std::unique_ptr<Reader> TMVA::Experimental::RReader::fReader
private

Definition at line 117 of file RReader.hxx.

◆ fValues

std::vector<float> TMVA::Experimental::RReader::fValues
private

Definition at line 118 of file RReader.hxx.

◆ fVariables

std::vector<std::string> TMVA::Experimental::RReader::fVariables
private

Definition at line 119 of file RReader.hxx.

◆ name

const char* TMVA::Experimental::RReader::name = "RReader"
private

Definition at line 122 of file RReader.hxx.

Libraries for TMVA::Experimental::RReader:

The documentation for this class was generated from the following file: