![Logo](../../ATLAS-Logo-Square-Blue-RGB.png) |
ATLAS Offline Software
|
Go to the documentation of this file.
6 #ifndef TRKNEURALNETWORKUTILS_TTRAINEDNETWORK_H
7 #define TRKNEURALNETWORKUTILS_TTRAINEDNETWORK_H
43 typedef std::vector<Double_t>
DVec;
44 typedef std::map<std::string, double>
DMap;
45 typedef DMap::const_iterator
DMapI;
55 std::vector<Int_t> & nHiddenLayerSize,
56 std::vector<TVectorD*> & thresholdVectors,
58 Int_t activationFunction,
65 void setOffsets(
const std::vector<double>& offsets);
66 void setScales(
const std::vector<double>& scales);
74 std::vector<TVectorD*> & thresholdVectors,
std::vector< Double_t > calculateOutputValues(std::vector< Double_t > &input) const
std::vector< Int_t > m_nHiddenLayerSize
DMap::const_iterator DMapI
Int_t getActivationFunction() const
const std::vector< Int_t > & getnHiddenLayerSize() const
bool getIfNormalizeOutput() const
const std::vector< TMatrixD * > & weightMatrices() const
@ u
Enums for curvilinear frames.
std::map< std::string, int > m_inputStringToNode
std::vector< Input > getInputs() const
std::vector< Double_t > DVec
bool is_consistent() const
bool check_norm_size(unsigned size) const
DVec calculateNormalized(const DVec &input) const
void setScales(const std::vector< double > &scales)
std::vector< TMatrixD * > m_WeightMatrices
const std::vector< TVectorD * > & getThresholdVectors() const
std::vector< TVectorD * > m_ThresholdVectors
void setNewWeights(std::vector< TVectorD * > &thresholdVectors, std::vector< TMatrixD * > &weightMatrices)
Double_t sigmoid(Double_t x) const
std::map< std::string, double > DMap
static const unsigned normalizeOutput
void setOffsets(const std::vector< double > &offsets)
Int_t m_ActivationFunction
cache of the maximum needed size, not persisitified
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)
bool getIfLinearOutput() const
std::vector< Double_t > m_input_node_offset
static const unsigned linearOutput
unsigned int m_bufferSizeMax
std::vector< Double_t > m_input_node_scale