Forest using branchless jitted trees.
T | Value type for the computation (usually floating point type) |
Definition at line 187 of file Forest.hxx.
Public Member Functions | |
void | Inference (const T *inputs, const int rows, bool layout, T *predictions) |
Perform inference of the forest with the jitted branchless implementation on a batch of inputs. More... | |
std::string | Load (const std::string &key, const std::string &filename, const int output=0, const bool sortTrees=true) |
Load parameters from a ROOT file to the branchless trees. More... | |
#include <TMVA/TreeInference/Forest.hxx>
void TMVA::Experimental::BranchlessJittedForest< T >::Inference | ( | const T * | inputs, |
const int | rows, | ||
bool | layout, | ||
T * | predictions | ||
) |
Perform inference of the forest with the jitted branchless implementation on a batch of inputs.
[in] | inputs | Pointer to data containing the inputs |
[in] | rows | Number of events in inputs vector |
[in] | layout | Row major (true) or column major (false) memory layout |
[in] | predictions | Pointer to the buffer to be filled with the predictions |
Definition at line 358 of file Forest.hxx.
|
inline |
Load parameters from a ROOT file to the branchless trees.
[in] | key | Name of folder in the ROOT file containing the model parameters |
[in] | filename | Filename of the ROOT file |
[in] | output | Load trees corresponding to the given output node of the forest |
[in] | sortTrees | Flag to indicate sorting the input trees by the cut value of the first node of each tree |
[out] | Return | jitted code as string |
Definition at line 201 of file Forest.hxx.