ATLAS Offline Software
Loading...
Searching...
No Matches
MVAUtils::detail Namespace Reference

Functions

template<typename T>
sigmoid (T x)
template<typename Container_t>
void applySoftmax (Container_t &x)
 apply softmax to the input: {exp[xi] / sum(exp[xj]) for xi in x}
std::vector< index_tcomputeRight (const std::vector< int > &vars)
 Compute the offsets between the nodes to their right children from a serialized representation of the tree with preoder traversal.

Function Documentation

◆ applySoftmax()

template<typename Container_t>
void MVAUtils::detail::applySoftmax ( Container_t & x)

apply softmax to the input: {exp[xi] / sum(exp[xj]) for xi in x}

◆ computeRight()

std::vector< index_t > MVAUtils::detail::computeRight ( const std::vector< int > & vars)
inline

Compute the offsets between the nodes to their right children from a serialized representation of the tree with preoder traversal.

Returns 0 for leafs. This function is used in the constructors of the Forest* classes

◆ sigmoid()

template<typename T>
T MVAUtils::detail::sigmoid ( T x)
inline

Definition at line 21 of file Forest.h.

21{ return 1. / (1. + exp(-x)); }
#define x