|
ATLAS Offline Software
|
Go to the documentation of this file.
15 #ifndef PIXELCALIBALGS_TJETNET_H
16 #define PIXELCALIBALGS_TJETNET_H
31 #include "Riostream.h"
46 TJetNet( Int_t aTestCount, Int_t aTrainCount,
const Int_t aLayersCnt,
const Int_t* aLayers );
59 void SetInputTrainSet( Int_t aPatternInd, Int_t aInputInd, Double_t aValue );
61 void SetInputTestSet( Int_t aPatternInd, Int_t aInputInd, Double_t aValue );
62 void SetOutputTestSet( Int_t aPatternInd, Int_t aOutputInd, Double_t aValue );
75 Double_t
GetWeight( Int_t aLayerInd, Int_t aNodeInd, Int_t aConnectedNodeInd )
const;
76 Double_t
GetThreshold( Int_t aLayerInd, Int_t aNodeInd)
const;
82 Double_t
Train(
void );
84 Double_t
Test(
void );
87 void Shuffle ( Bool_t aShuffleTrainSet =
true, Bool_t aShuffleTestSet =
true );
95 void DumpToFile( TString aFileName =
"fort.8" );
99 void SetInputs( Int_t aIndex = 0, Double_t aValue = 0.0 );
110 void SelectiveFields( Int_t aLayerA, Int_t aNodeA1, Int_t aNodeA2, Int_t aNodeB1, Int_t aNodeB2, Int_t aSwitch = 0 );
141 void SetMSTJN( Int_t aIndex, Int_t aValue );
142 void SetPARJN( Int_t aIndex, Double_t aValue );
162 void mSetWeight( Double_t
weight,Int_t aLayerInd, Int_t aNodeInd, Int_t aConnectedNodeInd );
165 Int_t
CopyFile( TString aSrcFile, TString aDestFile );
TActivationFunction m_enActFunction
Int_t GetTestSetCnt(void) const
void LoadDataAscii(TString aFileName="jndata.dat")
Int_t GetErrorMeasure(void)
Double_t GetLearningRate(void)
void SetPatternsPerUpdate(Int_t aValue)
Double_t GetEventWeightTestSet(Int_t aPatternInd)
void readBackTrainedNetwork(const TTrainedNetwork *)
void writeNetworkInfo(Int_t typeOfInfo=0)
void SetData(const Int_t aPattern, const Int_t aIndex, Double_t aValue)
Double_t GetMomentum(void)
Double_t GetOutput(Int_t aIndex=0)
void SaveDataAscii(TString aFileName="jndata.dat")
void SetOutputTestSet(Int_t aPatternInd, Int_t aOutputInd, Double_t aValue)
Double_t GetLearningRateDecrease(void)
Int_t GetMSTJN(Int_t aIndex)
Double_t GetData(const Int_t aPattern, const Int_t aIndex)
void SetUpdatingProcedure(Int_t aValue)
TNeuralDataSet * m_pInputTrainSet
Array which contains the number of units in each layer.
Double_t GetOutputTrainSet(Int_t aPatternInd, Int_t aOutputInd)
Int_t GetUpdatesPerEpoch(void)
void SetEpochs(const Int_t aEpochs)
Double_t GetInputTrainSet(Int_t aPatternInd, Int_t aInputInd)
void SetInputTestSet(Int_t aPatternInd, Int_t aInputInd, Double_t aValue)
void SetEventWeightTrainSet(Int_t aPatternInd, Double_t aValue)
Int_t CopyFile(TString aSrcFile, TString aDestFile)
void mSetThreshold(Double_t threshold, Int_t aLayerInd, Int_t aNodeInd)
void SetMomentum(Double_t aValue)
void Shuffle(Bool_t aShuffleTrainSet=true, Bool_t aShuffleTestSet=true)
void LoadDataRoot(TString aFileName="jndata.root")
void SetMSTJN(Int_t aIndex, Int_t aValue)
TNeuralDataSet * m_pOutputTrainSet
void SaveDataRoot(TString aFileName="jndata.root")
Double_t GetInputTestSet(Int_t aPatternInd, Int_t aInputInd)
Int_t GetLayerCount(void)
void ReadFromFile(TString aFileName="fort.8")
Double_t GetWeight(Int_t aLayerInd, Int_t aNodeInd, Int_t aConnectedNodeInd) const
void NormalizeOutput(bool isTrue=true)
void SetPARJN(Int_t aIndex, Double_t aValue)
Int_t GetUnitCount(Int_t aLayer)
TNeuralDataSet * m_pInputTestSet
void SetOutputTrainSet(Int_t aPatternInd, Int_t aOutputInd, Double_t aValue)
void SetInputTrainSet(Int_t aPatternInd, Int_t aInputInd, Double_t aValue)
Int_t GetPatternsPerUpdate(void)
void mSetWeight(Double_t weight, Int_t aLayerInd, Int_t aNodeInd, Int_t aConnectedNodeInd)
Int_t GetTrainSetCnt(void) const
Int_t GetActivationFunction(void) const
void SetErrorMeasure(Int_t aValue)
void SetLearningRate(Double_t aValue)
Int_t GetOutputDim(void) const
void SetLearningRateDecrease(Double_t aValue)
Double_t GetThreshold(Int_t aLayerInd, Int_t aNodeInd) const
Double_t GetInitialWeightsWidth(void)
void SetUpdatesPerEpoch(Int_t aValue)
void SetInitialWeightsWidth(Double_t aValue)
void DumpToFile(TString aFileName="fort.8")
void SetActivationFunction(Int_t aValue)
Double_t GetEventWeight(const Int_t aPattern)
Int_t GetInputDim(void) const
Int_t GetHiddenLayerSize(Int_t number) const
TTrainedNetwork * createTrainedNetwork() const
Double_t GetPARJN(Int_t aIndex)
Double_t GetOutputTestSet(Int_t aPatternInd, Int_t aOutputInd)
TNeuralDataSet * m_pOutputTestSet
void SetPottsUnits(Int_t aValue)
void SetEventWeightTestSet(Int_t aPatternInd, Double_t aValue)
void SelectiveFields(Int_t aLayerA, Int_t aNodeA1, Int_t aNodeA2, Int_t aNodeB1, Int_t aNodeB2, Int_t aSwitch=0)
void SetInputs(Int_t aIndex=0, Double_t aValue=0.0)
Double_t GetEventWeightTrainSet(Int_t aPatternInd)
Int_t GetUpdatingProcedure(void)
Int_t GetHiddenLayerDim(void) const