![]() |
Belle II Software development
|
Class to keep all parameters of an expert MLP for the neuro trigger. More...
#include <GRLMLP.h>
Public Member Functions | |
| GRLMLP () | |
| default constructor. | |
| GRLMLP (std::vector< unsigned short > &nodes, unsigned short targets, const std::vector< float > &outputscale) | |
| constructor to set all parameters (not weights and relevantID ranges). | |
| ~GRLMLP () | |
| destructor, empty because we don't allocate memory anywhere. | |
| bool | is_trained () const |
| check if weights are default values or set by some trainer | |
| unsigned | get_number_of_layers () const |
| get number of layers | |
| unsigned | get_number_of_nodes_layer (unsigned i_layer) const |
| get number of nodes in a layer | |
| unsigned | get_number_of_weights () const |
| get number of weights from length of weights vector | |
| unsigned | n_weights_cal () const |
| calculate number of weights from number of nodes | |
| unsigned | n_bias_cal () const |
| calculate number of weights from number of nodes | |
| std::vector< float > | get_weights () const |
| get weights vector | |
| std::vector< float > | get_bias () const |
| get bias vector | |
| void | set_weights (std::vector< float > &weights) |
| set weights vector | |
| void | set_bias (std::vector< float > &bias) |
| set bias vector | |
| std::vector< int > | get_total_bit_bias () const |
| get bit width etc. | |
| std::vector< int > | get_int_bit_bias () const |
| std::vector< bool > | get_is_signed_bias () const |
| std::vector< int > | get_rounding_bias () const |
| std::vector< int > | get_saturation_bias () const |
| std::vector< int > | get_total_bit_accum () const |
| std::vector< int > | get_int_bit_accum () const |
| std::vector< bool > | get_is_signed_accum () const |
| std::vector< int > | get_rounding_accum () const |
| std::vector< int > | get_saturation_accum () const |
| std::vector< int > | get_total_bit_weight () const |
| std::vector< int > | get_int_bit_weight () const |
| std::vector< bool > | get_is_signed_weight () const |
| std::vector< int > | get_rounding_weight () const |
| std::vector< int > | get_saturation_weight () const |
| std::vector< int > | get_total_bit_relu () const |
| std::vector< int > | get_int_bit_relu () const |
| std::vector< bool > | get_is_signed_relu () const |
| std::vector< int > | get_rounding_relu () const |
| std::vector< int > | get_saturation_relu () const |
| std::vector< int > | get_total_bit () const |
| std::vector< int > | get_int_bit () const |
| std::vector< bool > | get_is_signed () const |
| std::vector< int > | get_rounding () const |
| std::vector< int > | get_saturation () const |
| std::vector< std::vector< int > > | get_W_input () const |
| std::vector< std::vector< int > > | get_I_input () const |
| void | set_total_bit_bias (const std::vector< int > &i) |
| set bit width etc. | |
| void | set_int_bit_bias (const std::vector< int > &i) |
| void | set_is_signed_bias (const std::vector< bool > &i) |
| void | set_rounding_bias (const std::vector< int > &i) |
| void | set_saturation_bias (const std::vector< int > &i) |
| void | set_total_bit_accum (const std::vector< int > &i) |
| void | set_int_bit_accum (const std::vector< int > &i) |
| void | set_is_signed_accum (const std::vector< bool > &i) |
| void | set_rounding_accum (const std::vector< int > &i) |
| void | set_saturation_accum (const std::vector< int > &i) |
| void | set_total_bit_weight (const std::vector< int > &i) |
| void | set_int_bit_weight (const std::vector< int > &i) |
| void | set_is_signed_weight (const std::vector< bool > &i) |
| void | set_rounding_weight (const std::vector< int > &i) |
| void | set_saturation_weight (const std::vector< int > &i) |
| void | set_total_bit_relu (const std::vector< int > &i) |
| void | set_int_bit_relu (const std::vector< int > &i) |
| void | set_is_signed_relu (const std::vector< bool > &i) |
| void | set_rounding_relu (const std::vector< int > &i) |
| void | set_saturation_relu (const std::vector< int > &i) |
| void | set_total_bit (const std::vector< int > &i) |
| void | set_int_bit (const std::vector< int > &i) |
| void | set_is_signed (const std::vector< bool > &i) |
| void | set_rounding (const std::vector< int > &i) |
| void | set_saturation (const std::vector< int > &i) |
| void | set_W_input (const std::vector< std::vector< int > > &i) |
| void | set_I_input (const std::vector< std::vector< int > > &i) |
| void | Trained (bool trained) |
| check if weights are default values or set by some trainer | |
Private Member Functions | |
| ClassDef (GRLMLP, 4) | |
| Needed to make the ROOT object storable. | |
Private Attributes | |
| std::vector< unsigned short > | m_n_nodes |
| Number of nodes in each layer, not including bias nodes. | |
| std::vector< float > | m_weights |
| Weights of the network. | |
| std::vector< float > | m_bias |
| bias of the network. | |
| std::vector< int > | m_total_bit_bias |
| bit width etc. | |
| std::vector< int > | m_int_bit_bias |
| std::vector< bool > | m_is_signed_bias |
| std::vector< int > | m_rounding_bias |
| std::vector< int > | m_saturation_bias |
| std::vector< int > | m_total_bit_accum |
| std::vector< int > | m_int_bit_accum |
| std::vector< bool > | m_is_signed_accum |
| std::vector< int > | m_rounding_accum |
| std::vector< int > | m_saturation_accum |
| std::vector< int > | m_total_bit_weight |
| std::vector< int > | m_int_bit_weight |
| std::vector< bool > | m_is_signed_weight |
| std::vector< int > | m_rounding_weight |
| std::vector< int > | m_saturation_weight |
| std::vector< int > | m_total_bit_relu |
| std::vector< int > | m_int_bit_relu |
| std::vector< bool > | m_is_signed_relu |
| std::vector< int > | m_rounding_relu |
| std::vector< int > | m_saturation_relu |
| std::vector< int > | m_total_bit |
| std::vector< int > | m_int_bit |
| std::vector< bool > | m_is_signed |
| std::vector< int > | m_rounding |
| std::vector< int > | m_saturation |
| std::vector< std::vector< int > > | m_W_input |
| std::vector< std::vector< int > > | m_I_input |
| bool | m_trained |
| Indicator whether the weights are just default values or have been set by some trainer (set to true when setWeights() is first called). | |
| unsigned short | m_target_vars |
| output variables: 1: z, 2: theta, 3: (z, theta) | |
| std::vector< float > | m_output_scale |
| Output[i] of the MLP is scaled from [-1, 1] to [outputScale[2i], outputScale[2i+1]]. | |
Friends | |
| class | GRLNeuroTrainerModule |
Class to keep all parameters of an expert MLP for the neuro trigger.
| GRLMLP | ( | ) |
default constructor.
Definition at line 14 of file GRLMLP.cc.
| GRLMLP | ( | std::vector< unsigned short > & | nodes, |
| unsigned short | targets, | ||
| const std::vector< float > & | outputscale ) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| unsigned n_bias_cal | ( | ) | const |
calculate number of weights from number of nodes
Definition at line 45 of file GRLMLP.cc.
| unsigned n_weights_cal | ( | ) | const |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
friend |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |