ATLAS Offline Software
|
#include <TTrainedNetwork.h>
Classes | |
struct | Input |
Public Types | |
enum | ActivationFunction { SIGMOID = 1 } |
typedef std::vector< Double_t > | DVec |
typedef std::map< std::string, double > | DMap |
typedef DMap::const_iterator | DMapI |
Public Member Functions | |
TTrainedNetwork () | |
TTrainedNetwork (Int_t nInput, Int_t nHidden, Int_t nOutput, std::vector< Int_t > &nHiddenLayerSize, std::vector< TVectorD * > &thresholdVectors, std::vector< TMatrixD * > &weightMatrices, Int_t activationFunction, bool linearOutput=false, bool normalizeOutput=false) | |
~TTrainedNetwork () | |
void | setNewWeights (std::vector< TVectorD * > &thresholdVectors, std::vector< TMatrixD * > &weightMatrices) |
Int_t | getnInput () const |
Int_t | getnHidden () const |
Int_t | getnOutput () const |
const std::vector< Int_t > & | getnHiddenLayerSize () const |
Int_t | getActivationFunction () const |
const std::vector< TVectorD * > & | getThresholdVectors () const |
const std::vector< TMatrixD * > & | weightMatrices () const |
std::vector< Double_t > | calculateOutputValues (std::vector< Double_t > &input) const |
bool | getIfLinearOutput () const |
bool | getIfNormalizeOutput () const |
TTrainedNetwork () | |
TTrainedNetwork (Int_t nInput, Int_t nHidden, Int_t nOutput, std::vector< Int_t > &nHiddenLayerSize, std::vector< TVectorD * > &thresholdVectors, std::vector< TMatrixD * > &weightMatrices, Int_t activationFunction, bool linearOutput=false, bool normalizeOutput=false) | |
void | setOffsets (const std::vector< double > &offsets) |
void | setScales (const std::vector< double > &scales) |
TTrainedNetwork (const std::vector< TTrainedNetwork::Input > &inputs, unsigned nOutput, std::vector< TVectorD * > &thresholdVectors, std::vector< TMatrixD * > &weightMatrices, ActivationFunction activationFunction=SIGMOID, unsigned options=0) | |
~TTrainedNetwork () | |
std::vector< Input > | getInputs () const |
void | setNewWeights (std::vector< TVectorD * > &thresholdVectors, std::vector< TMatrixD * > &weightMatrices) |
Int_t | getnInput () const |
Int_t | getnHidden () const |
Int_t | getnOutput () const |
const std::vector< Int_t > & | getnHiddenLayerSize () const |
Int_t | getActivationFunction () const |
const std::vector< TVectorD * > & | getThresholdVectors () const |
const std::vector< TMatrixD * > & | weightMatrices () const |
DVec | calculateOutputValues (const DVec &input) const |
DVec | calculateNormalized (const DVec &input) const |
DVec | calculateNormalized (const DMap &input) const |
bool | getIfLinearOutput () const |
bool | getIfNormalizeOutput () const |
Static Public Attributes | |
static const unsigned | linearOutput = 1u << 0 |
static const unsigned | normalizeOutput = 1u << 1 |
Private Member Functions | |
Double_t | sigmoid (Double_t x) const |
Double_t | sigmoid (Double_t x) const |
bool | is_consistent () const |
bool | check_norm_size (unsigned size) const |
Private Attributes | |
Int_t | m_nInput |
Int_t | m_nHidden |
Int_t | m_nOutput |
std::vector< Int_t > | m_nHiddenLayerSize |
std::vector< TVectorD * > | m_ThresholdVectors |
std::vector< TMatrixD * > | m_WeightMatrices |
Int_t | m_ActivationFunction |
cache of the maximum needed size, not persisitified More... | |
bool | m_LinearOutput |
bool | m_NormalizeOutput |
unsigned | m_nInput |
unsigned | m_nHidden |
unsigned | m_nOutput |
std::vector< Double_t > | m_input_node_offset |
std::vector< Double_t > | m_input_node_scale |
std::map< std::string, int > | m_inputStringToNode |
unsigned int | m_bufferSizeMax |
double | m_maxExpValue |
Definition at line 20 of file InnerDetector/InDetCalibAlgs/PixelCalibAlgs/NNClusteringCalibration_RunI/TTrainedNetwork.h.
typedef std::map<std::string, double> TTrainedNetwork::DMap |
Definition at line 44 of file Tracking/TrkUtilityPackages/TrkNeuralNetworkUtils/TrkNeuralNetworkUtils/TTrainedNetwork.h.
typedef DMap::const_iterator TTrainedNetwork::DMapI |
Definition at line 45 of file Tracking/TrkUtilityPackages/TrkNeuralNetworkUtils/TrkNeuralNetworkUtils/TTrainedNetwork.h.
typedef std::vector<Double_t> TTrainedNetwork::DVec |
Definition at line 43 of file Tracking/TrkUtilityPackages/TrkNeuralNetworkUtils/TrkNeuralNetworkUtils/TTrainedNetwork.h.
Enumerator | |
---|---|
SIGMOID |
Definition at line 33 of file Tracking/TrkUtilityPackages/TrkNeuralNetworkUtils/TrkNeuralNetworkUtils/TTrainedNetwork.h.
TTrainedNetwork::TTrainedNetwork | ( | ) |
Definition at line 12 of file InnerDetector/InDetCalibAlgs/PixelCalibAlgs/NNClusteringCalibration_RunI/TTrainedNetwork.cxx.
TTrainedNetwork::TTrainedNetwork | ( | Int_t | nInput, |
Int_t | nHidden, | ||
Int_t | nOutput, | ||
std::vector< Int_t > & | nHiddenLayerSize, | ||
std::vector< TVectorD * > & | thresholdVectors, | ||
std::vector< TMatrixD * > & | weightMatrices, | ||
Int_t | activationFunction, | ||
bool | linearOutput = false , |
||
bool | normalizeOutput = false |
||
) |
Definition at line 22 of file InnerDetector/InDetCalibAlgs/PixelCalibAlgs/NNClusteringCalibration_RunI/TTrainedNetwork.cxx.
TTrainedNetwork::~TTrainedNetwork | ( | ) |
Definition at line 43 of file InnerDetector/InDetCalibAlgs/PixelCalibAlgs/NNClusteringCalibration_RunI/TTrainedNetwork.cxx.
TTrainedNetwork::TTrainedNetwork | ( | ) |
TTrainedNetwork::TTrainedNetwork | ( | Int_t | nInput, |
Int_t | nHidden, | ||
Int_t | nOutput, | ||
std::vector< Int_t > & | nHiddenLayerSize, | ||
std::vector< TVectorD * > & | thresholdVectors, | ||
std::vector< TMatrixD * > & | weightMatrices, | ||
Int_t | activationFunction, | ||
bool | linearOutput = false , |
||
bool | normalizeOutput = false |
||
) |
TTrainedNetwork::TTrainedNetwork | ( | const std::vector< TTrainedNetwork::Input > & | inputs, |
unsigned | nOutput, | ||
std::vector< TVectorD * > & | thresholdVectors, | ||
std::vector< TMatrixD * > & | weightMatrices, | ||
ActivationFunction | activationFunction = SIGMOID , |
||
unsigned | options = 0 |
||
) |
Definition at line 76 of file Tracking/TrkUtilityPackages/TrkNeuralNetworkUtils/src/TTrainedNetwork.cxx.
TTrainedNetwork::~TTrainedNetwork | ( | ) |
Definition at line 225 of file Tracking/TrkUtilityPackages/TrkNeuralNetworkUtils/src/TTrainedNetwork.cxx.
Definition at line 267 of file Tracking/TrkUtilityPackages/TrkNeuralNetworkUtils/src/TTrainedNetwork.cxx.
Definition at line 283 of file Tracking/TrkUtilityPackages/TrkNeuralNetworkUtils/src/TTrainedNetwork.cxx.
std::vector< Double_t > TTrainedNetwork::calculateOutputValues | ( | std::vector< Double_t > & | input | ) | const |
Definition at line 99 of file InnerDetector/InDetCalibAlgs/PixelCalibAlgs/NNClusteringCalibration_RunI/TTrainedNetwork.cxx.
|
private |
Definition at line 412 of file Tracking/TrkUtilityPackages/TrkNeuralNetworkUtils/src/TTrainedNetwork.cxx.
|
inline |
Definition at line 54 of file InnerDetector/InDetCalibAlgs/PixelCalibAlgs/NNClusteringCalibration_RunI/TTrainedNetwork.h.
|
inline |
Definition at line 97 of file Tracking/TrkUtilityPackages/TrkNeuralNetworkUtils/TrkNeuralNetworkUtils/TTrainedNetwork.h.
|
inline |
Definition at line 62 of file InnerDetector/InDetCalibAlgs/PixelCalibAlgs/NNClusteringCalibration_RunI/TTrainedNetwork.h.
|
inline |
Definition at line 117 of file Tracking/TrkUtilityPackages/TrkNeuralNetworkUtils/TrkNeuralNetworkUtils/TTrainedNetwork.h.
|
inline |
Definition at line 64 of file InnerDetector/InDetCalibAlgs/PixelCalibAlgs/NNClusteringCalibration_RunI/TTrainedNetwork.h.
|
inline |
Definition at line 119 of file Tracking/TrkUtilityPackages/TrkNeuralNetworkUtils/TrkNeuralNetworkUtils/TTrainedNetwork.h.
std::vector< TTrainedNetwork::Input > TTrainedNetwork::getInputs | ( | ) | const |
Definition at line 163 of file Tracking/TrkUtilityPackages/TrkNeuralNetworkUtils/src/TTrainedNetwork.cxx.
|
inline |
Definition at line 48 of file InnerDetector/InDetCalibAlgs/PixelCalibAlgs/NNClusteringCalibration_RunI/TTrainedNetwork.h.
|
inline |
Definition at line 89 of file Tracking/TrkUtilityPackages/TrkNeuralNetworkUtils/TrkNeuralNetworkUtils/TTrainedNetwork.h.
|
inline |
Definition at line 52 of file InnerDetector/InDetCalibAlgs/PixelCalibAlgs/NNClusteringCalibration_RunI/TTrainedNetwork.h.
|
inline |
Definition at line 93 of file Tracking/TrkUtilityPackages/TrkNeuralNetworkUtils/TrkNeuralNetworkUtils/TTrainedNetwork.h.
|
inline |
Definition at line 46 of file InnerDetector/InDetCalibAlgs/PixelCalibAlgs/NNClusteringCalibration_RunI/TTrainedNetwork.h.
|
inline |
Definition at line 87 of file Tracking/TrkUtilityPackages/TrkNeuralNetworkUtils/TrkNeuralNetworkUtils/TTrainedNetwork.h.
|
inline |
Definition at line 50 of file InnerDetector/InDetCalibAlgs/PixelCalibAlgs/NNClusteringCalibration_RunI/TTrainedNetwork.h.
|
inline |
Definition at line 91 of file Tracking/TrkUtilityPackages/TrkNeuralNetworkUtils/TrkNeuralNetworkUtils/TTrainedNetwork.h.
|
inline |
Definition at line 56 of file InnerDetector/InDetCalibAlgs/PixelCalibAlgs/NNClusteringCalibration_RunI/TTrainedNetwork.h.
|
inline |
Definition at line 99 of file Tracking/TrkUtilityPackages/TrkNeuralNetworkUtils/TrkNeuralNetworkUtils/TTrainedNetwork.h.
|
private |
Definition at line 372 of file Tracking/TrkUtilityPackages/TrkNeuralNetworkUtils/src/TTrainedNetwork.cxx.
void TTrainedNetwork::setNewWeights | ( | std::vector< TVectorD * > & | thresholdVectors, |
std::vector< TMatrixD * > & | weightMatrices | ||
) |
Definition at line 67 of file InnerDetector/InDetCalibAlgs/PixelCalibAlgs/NNClusteringCalibration_RunI/TTrainedNetwork.cxx.
void TTrainedNetwork::setNewWeights | ( | std::vector< TVectorD * > & | thresholdVectors, |
std::vector< TMatrixD * > & | weightMatrices | ||
) |
void TTrainedNetwork::setOffsets | ( | const std::vector< double > & | offsets | ) |
Definition at line 65 of file Tracking/TrkUtilityPackages/TrkNeuralNetworkUtils/src/TTrainedNetwork.cxx.
void TTrainedNetwork::setScales | ( | const std::vector< double > & | scales | ) |
Definition at line 70 of file Tracking/TrkUtilityPackages/TrkNeuralNetworkUtils/src/TTrainedNetwork.cxx.
|
inlineprivate |
Definition at line 85 of file InnerDetector/InDetCalibAlgs/PixelCalibAlgs/NNClusteringCalibration_RunI/TTrainedNetwork.h.
|
private |
|
inline |
Definition at line 58 of file InnerDetector/InDetCalibAlgs/PixelCalibAlgs/NNClusteringCalibration_RunI/TTrainedNetwork.h.
|
inline |
Definition at line 103 of file Tracking/TrkUtilityPackages/TrkNeuralNetworkUtils/TrkNeuralNetworkUtils/TTrainedNetwork.h.
|
static |
Definition at line 30 of file Tracking/TrkUtilityPackages/TrkNeuralNetworkUtils/TrkNeuralNetworkUtils/TTrainedNetwork.h.
|
private |
cache of the maximum needed size, not persisitified
Definition at line 79 of file InnerDetector/InDetCalibAlgs/PixelCalibAlgs/NNClusteringCalibration_RunI/TTrainedNetwork.h.
|
private |
Definition at line 140 of file Tracking/TrkUtilityPackages/TrkNeuralNetworkUtils/TrkNeuralNetworkUtils/TTrainedNetwork.h.
|
private |
Definition at line 130 of file Tracking/TrkUtilityPackages/TrkNeuralNetworkUtils/TrkNeuralNetworkUtils/TTrainedNetwork.h.
|
private |
Definition at line 131 of file Tracking/TrkUtilityPackages/TrkNeuralNetworkUtils/TrkNeuralNetworkUtils/TTrainedNetwork.h.
|
private |
Definition at line 133 of file Tracking/TrkUtilityPackages/TrkNeuralNetworkUtils/TrkNeuralNetworkUtils/TTrainedNetwork.h.
|
private |
Definition at line 81 of file InnerDetector/InDetCalibAlgs/PixelCalibAlgs/NNClusteringCalibration_RunI/TTrainedNetwork.h.
|
private |
Definition at line 148 of file Tracking/TrkUtilityPackages/TrkNeuralNetworkUtils/TrkNeuralNetworkUtils/TTrainedNetwork.h.
|
private |
Definition at line 69 of file InnerDetector/InDetCalibAlgs/PixelCalibAlgs/NNClusteringCalibration_RunI/TTrainedNetwork.h.
|
private |
Definition at line 125 of file Tracking/TrkUtilityPackages/TrkNeuralNetworkUtils/TrkNeuralNetworkUtils/TTrainedNetwork.h.
|
private |
Definition at line 72 of file InnerDetector/InDetCalibAlgs/PixelCalibAlgs/NNClusteringCalibration_RunI/TTrainedNetwork.h.
|
private |
Definition at line 68 of file InnerDetector/InDetCalibAlgs/PixelCalibAlgs/NNClusteringCalibration_RunI/TTrainedNetwork.h.
|
private |
Definition at line 124 of file Tracking/TrkUtilityPackages/TrkNeuralNetworkUtils/TrkNeuralNetworkUtils/TTrainedNetwork.h.
|
private |
Definition at line 83 of file InnerDetector/InDetCalibAlgs/PixelCalibAlgs/NNClusteringCalibration_RunI/TTrainedNetwork.h.
|
private |
Definition at line 70 of file InnerDetector/InDetCalibAlgs/PixelCalibAlgs/NNClusteringCalibration_RunI/TTrainedNetwork.h.
|
private |
Definition at line 126 of file Tracking/TrkUtilityPackages/TrkNeuralNetworkUtils/TrkNeuralNetworkUtils/TTrainedNetwork.h.
|
private |
Definition at line 75 of file InnerDetector/InDetCalibAlgs/PixelCalibAlgs/NNClusteringCalibration_RunI/TTrainedNetwork.h.
|
private |
Definition at line 76 of file InnerDetector/InDetCalibAlgs/PixelCalibAlgs/NNClusteringCalibration_RunI/TTrainedNetwork.h.
|
static |
Definition at line 31 of file Tracking/TrkUtilityPackages/TrkNeuralNetworkUtils/TrkNeuralNetworkUtils/TTrainedNetwork.h.