ATLAS Offline Software
Functions
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} More...
 
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. More...
 

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 ( x)
inline

Definition at line 21 of file Forest.h.

21 { return 1. / (1. + exp(-x)); }
drawFromPickle.exp
exp
Definition: drawFromPickle.py:36
x
#define x