Belle II Software light-2406-ragdoll
|
Class for handling the parameters for the neural-network PID. More...
#include <PIDNeuralNetworkParameters.h>
Public Member Functions | |
PIDNeuralNetworkParameters () | |
Constructor. | |
PIDNeuralNetworkParameters (const std::string &description, const std::vector< std::string > &inputNames, const std::string &modelDefinition, const std::vector< int > &outputSpeciesPdg, const std::vector< float > &meanValues, const std::vector< float > &standardDeviations, const PIDNNMissingInputs &handleMissingInputs, const PIDNNInputsToCut &inputsToCut) | |
Construct with individual neural-network parameters. | |
int | pdg2OutputIndex (const int pdg, const bool throwException=true) const |
Convert pdg code to the index of the neural-network output that represents the corresponding probability. | |
bool | hasPdgCode (const int pdg, const bool throwException=false) const |
const std::string & | getModelDefinition () const |
Get the neural network model-definition string for frugally-deep. | |
const std::vector< float > & | getMeanValues () const |
Get the mean values of the inputs for normalization. | |
const std::vector< float > & | getStandardDeviations () const |
Get the standard deviations of the inputs for normalization. | |
const PIDNNMissingInputs & | getHandleMissingInputs () const |
Get vector of input indices and corresponding values that are set if the corresponding input is NaN. | |
const PIDNNInputsToCut & | getInputsToCut () const |
Get vector of input indices, whose values are overwritten if other input variables are in a certain range. | |
size_t | getInputSize () const |
Get number of inputs. | |
const std::vector< std::string > & | getInputNames () const |
Get input names. | |
size_t | getInputIndex (const std::string &name) const |
Get input index for input name. | |
const std::string & | getDescription () const |
Get neural network description. | |
const std::vector< int > & | getOutputSpeciesPdg () const |
Get the list of pdg codes of species hypotheses, for which the network predicts the probability in the order defined by the network output layer. | |
Private Member Functions | |
ClassDef (PIDNeuralNetworkParameters, 1) | |
ClassDef as this is a TObject. | |
Private Attributes | |
std::string | m_description |
description of neural network parameters | |
std::vector< std::string > | m_inputNames |
list of input names | |
std::string | m_modelDefinition |
neural network string for frugally-deep | |
std::vector< int > | m_outputSpeciesPdg |
PDG codes of hypotheses of neural-network output. | |
std::vector< float > | m_meanValues |
mean values of inputs | |
std::vector< float > | m_standardDeviations |
standard deviations of inputs | |
PIDNNMissingInputs | m_handleMissingInputs |
handling of NaN inputs | |
PIDNNInputsToCut | m_inputsToCut |
overwrite certain input variables | |
Class for handling the parameters for the neural-network PID.
Definition at line 45 of file PIDNeuralNetworkParameters.h.
|
inline |
|
inline |
Construct with individual neural-network parameters.
Definition at line 54 of file PIDNeuralNetworkParameters.h.
|
inline |
Get neural network description.
Definition at line 135 of file PIDNeuralNetworkParameters.h.
|
inline |
Get vector of input indices and corresponding values that are set if the corresponding input is NaN.
Definition at line 108 of file PIDNeuralNetworkParameters.h.
size_t getInputIndex | ( | const std::string & | name | ) | const |
Get input index for input name.
name | Input name that should be matched to a index |
name
not in inputs Definition at line 32 of file PIDNeuralNetworkParameters.cc.
|
inline |
Get input names.
Definition at line 123 of file PIDNeuralNetworkParameters.h.
|
inline |
Get number of inputs.
Definition at line 118 of file PIDNeuralNetworkParameters.h.
|
inline |
Get vector of input indices, whose values are overwritten if other input variables are in a certain range.
Definition at line 113 of file PIDNeuralNetworkParameters.h.
|
inline |
Get the mean values of the inputs for normalization.
Definition at line 98 of file PIDNeuralNetworkParameters.h.
|
inline |
Get the neural network model-definition string for frugally-deep.
Definition at line 93 of file PIDNeuralNetworkParameters.h.
|
inline |
Get the list of pdg codes of species hypotheses, for which the network predicts the probability in the order defined by the network output layer.
Definition at line 142 of file PIDNeuralNetworkParameters.h.
|
inline |
Get the standard deviations of the inputs for normalization.
Definition at line 103 of file PIDNeuralNetworkParameters.h.
|
inline |
pdg | pdg code of hypothesis |
throwException | throw exception if pdg code is not predicted |
Definition at line 87 of file PIDNeuralNetworkParameters.h.
int pdg2OutputIndex | ( | const int | pdg, |
const bool | throwException = true |
||
) | const |
Convert pdg code to the index of the neural-network output that represents the corresponding probability.
pdg | PDG code for particle-species hypothesis |
throwException | throw exception if pdg code is not predicted |
Definition at line 19 of file PIDNeuralNetworkParameters.cc.
|
private |
description of neural network parameters
Definition at line 146 of file PIDNeuralNetworkParameters.h.
|
private |
handling of NaN inputs
Definition at line 152 of file PIDNeuralNetworkParameters.h.
|
private |
list of input names
Definition at line 147 of file PIDNeuralNetworkParameters.h.
|
private |
overwrite certain input variables
Definition at line 153 of file PIDNeuralNetworkParameters.h.
|
private |
mean values of inputs
Definition at line 150 of file PIDNeuralNetworkParameters.h.
|
private |
neural network string for frugally-deep
Definition at line 148 of file PIDNeuralNetworkParameters.h.
|
private |
PDG codes of hypotheses of neural-network output.
Definition at line 149 of file PIDNeuralNetworkParameters.h.
|
private |
standard deviations of inputs
Definition at line 151 of file PIDNeuralNetworkParameters.h.