Logo ROOT  
Reference Guide
TMVA::Experimental::ForestBase< T, ForestType > Struct Template Reference

template<typename T, typename ForestType>
struct TMVA::Experimental::ForestBase< T, ForestType >

Forest base class.

Template Parameters
TValue type for the computation (usually floating point type)
ForestTypeType of the collection of trees

Definition at line 67 of file Forest.hxx.

Public Types

using Value_t = T
 

Public Member Functions

void Inference (const T *inputs, const int rows, bool layout, T *predictions)
 Perform inference of the forest on a batch of inputs. More...
 

Public Attributes

int fNumInputs
 Number of input variables. More...
 
std::function< T(T)> fObjectiveFunc
 Objective function. More...
 
ForestType fTrees
 Store the forest, either as vector or jitted function. More...
 

#include <TMVA/TreeInference/Forest.hxx>

Member Typedef Documentation

◆ Value_t

template<typename T , typename ForestType >
using TMVA::Experimental::ForestBase< T, ForestType >::Value_t = T

Definition at line 68 of file Forest.hxx.

Member Function Documentation

◆ Inference()

template<typename T , typename ForestType >
void TMVA::Experimental::ForestBase< T, ForestType >::Inference ( const T *  inputs,
const int  rows,
bool  layout,
T *  predictions 
)
inline

Perform inference of the forest on a batch of inputs.

Parameters
[in]inputsPointer to data containing the inputs
[in]rowsNumber of events in inputs vector
[in]layoutRow major (true) or column major (false) memory layout
[in]predictionsPointer to the buffer to be filled with the predictions

Definition at line 83 of file Forest.hxx.

Member Data Documentation

◆ fNumInputs

template<typename T , typename ForestType >
int TMVA::Experimental::ForestBase< T, ForestType >::fNumInputs

Number of input variables.

Definition at line 71 of file Forest.hxx.

◆ fObjectiveFunc

template<typename T , typename ForestType >
std::function<T(T)> TMVA::Experimental::ForestBase< T, ForestType >::fObjectiveFunc

Objective function.

Definition at line 69 of file Forest.hxx.

◆ fTrees

template<typename T , typename ForestType >
ForestType TMVA::Experimental::ForestBase< T, ForestType >::fTrees

Store the forest, either as vector or jitted function.

Definition at line 70 of file Forest.hxx.


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