![]() |
ATLAS Offline Software
|
#include <TJetNet.h>
Public Types | |
| enum | TActivationFunction { afSigmoid = 1 , afTanh = 2 , afExp = 3 , afLinear = 4 , afSigmoidEntropy = 5 } |
Public Member Functions | |
| TJetNet (void) | |
| TJetNet (Int_t aTestCount, Int_t aTrainCount, const Int_t aLayersCnt, const Int_t *aLayers) | |
| virtual | ~TJetNet (void) |
| void | Print (void) |
| Int_t | GetTrainSetCnt (void) const |
| Int_t | GetTestSetCnt (void) const |
| Int_t | GetInputDim (void) const |
| Int_t | GetHiddenLayerDim (void) const |
| Int_t | GetHiddenLayerSize (Int_t number) const |
| Int_t | GetOutputDim (void) const |
| void | SetInputTrainSet (Int_t aPatternInd, Int_t aInputInd, Double_t aValue) |
| void | SetOutputTrainSet (Int_t aPatternInd, Int_t aOutputInd, Double_t aValue) |
| void | SetInputTestSet (Int_t aPatternInd, Int_t aInputInd, Double_t aValue) |
| void | SetOutputTestSet (Int_t aPatternInd, Int_t aOutputInd, Double_t aValue) |
| void | SetEventWeightTrainSet (Int_t aPatternInd, Double_t aValue) |
| void | SetEventWeightTestSet (Int_t aPatternInd, Double_t aValue) |
| Double_t | GetInputTrainSet (Int_t aPatternInd, Int_t aInputInd) |
| Double_t | GetOutputTrainSet (Int_t aPatternInd, Int_t aOutputInd) |
| Double_t | GetInputTestSet (Int_t aPatternInd, Int_t aInputInd) |
| Double_t | GetOutputTestSet (Int_t aPatternInd, Int_t aOutputInd) |
| Double_t | GetEventWeightTrainSet (Int_t aPatternInd) |
| Double_t | GetEventWeightTestSet (Int_t aPatternInd) |
| Double_t | GetWeight (Int_t aLayerInd, Int_t aNodeInd, Int_t aConnectedNodeInd) const |
| Double_t | GetThreshold (Int_t aLayerInd, Int_t aNodeInd) const |
| Int_t | GetEpochs (void) |
| void | SetEpochs (const Int_t aEpochs) |
| void | Init (void) |
| Double_t | Train (void) |
| Int_t | Epoch (void) |
| Double_t | Test (void) |
| Double_t | TestBTAG (void) |
| void | Shuffle (Bool_t aShuffleTrainSet=true, Bool_t aShuffleTestSet=true) |
| void | SaveDataAscii (TString aFileName="jndata.dat") |
| void | SaveDataRoot (TString aFileName="jndata.root") |
| void | LoadDataAscii (TString aFileName="jndata.dat") |
| void | LoadDataRoot (TString aFileName="jndata.root") |
| void | DumpToFile (TString aFileName="fort.8") |
| void | ReadFromFile (TString aFileName="fort.8") |
| Double_t | GetOutput (Int_t aIndex=0) |
| void | SetInputs (Int_t aIndex=0, Double_t aValue=0.0) |
| void | Evaluate (Int_t aPattern) |
| void | Evaluate () |
| void | writeNetworkInfo (Int_t typeOfInfo=0) |
| Int_t | GetLayerCount (void) |
| Int_t | GetUnitCount (Int_t aLayer) |
| void | SelectiveFields (Int_t aLayerA, Int_t aNodeA1, Int_t aNodeA2, Int_t aNodeB1, Int_t aNodeB2, Int_t aSwitch=0) |
| void | SetUpdatesPerEpoch (Int_t aValue) |
| void | SetUpdatingProcedure (Int_t aValue) |
| void | SetErrorMeasure (Int_t aValue) |
| void | SetActivationFunction (Int_t aValue) |
| void | SetActivationFunction (Int_t aValue, Int_t layerN) |
| void | SetPatternsPerUpdate (Int_t aValue) |
| void | SetLearningRate (Double_t aValue) |
| void | SetMomentum (Double_t aValue) |
| void | SetInitialWeightsWidth (Double_t aValue) |
| void | SetLearningRateDecrease (Double_t aValue) |
| void | SetPottsUnits (Int_t aValue) |
| Int_t | GetUpdatesPerEpoch (void) |
| Int_t | GetUpdatingProcedure (void) |
| Int_t | GetErrorMeasure (void) |
| Int_t | GetActivationFunction (void) const |
| Int_t | GetActivationFunction (Int_t layerN) const |
| Int_t | GetPatternsPerUpdate (void) |
| Double_t | GetLearningRate (void) |
| Double_t | GetMomentum (void) |
| Double_t | GetInitialWeightsWidth (void) |
| Double_t | GetLearningRateDecrease (void) |
| Int_t | GetPottsUnits () |
| void | LockInit (void) |
| void | UnlockInit (void) |
| Int_t | GetMSTJN (Int_t aIndex) |
| Double_t | GetPARJN (Int_t aIndex) |
| void | SetMSTJN (Int_t aIndex, Int_t aValue) |
| void | SetPARJN (Int_t aIndex, Double_t aValue) |
| void | Normalize (void) |
| void | Randomize (void) |
| TTrainedNetwork * | createTrainedNetwork () const |
| void | readBackTrainedNetwork (const TTrainedNetwork *) |
| void | NormalizeOutput (bool isTrue=true) |
Private Member Functions | |
| void | mSetWeight (Double_t weight, Int_t aLayerInd, Int_t aNodeInd, Int_t aConnectedNodeInd) |
| void | mSetThreshold (Double_t threshold, Int_t aLayerInd, Int_t aNodeInd) |
| Int_t | CopyFile (TString aSrcFile, TString aDestFile) |
| void | Reinitialize (void) |
Private Attributes | |
| TActivationFunction | m_enActFunction {} |
| Int_t | m_LayerCount |
| Int_t * | m_pLayers |
| TNeuralDataSet * | m_pInputTrainSet |
| Array which contains the number of units in each layer. | |
| TNeuralDataSet * | m_pOutputTrainSet |
| TNeuralDataSet * | m_pInputTestSet |
| TNeuralDataSet * | m_pOutputTestSet |
| Int_t | m_TrainSetCnt |
| Int_t | m_TestSetCnt |
| Int_t | m_InputDim |
| Int_t | m_HiddenLayerDim |
| Int_t | m_OutputDim |
| Int_t | m_Epochs |
| Int_t | m_CurrentEpoch |
| Bool_t | m_Debug |
| Bool_t | m_IsInitialized |
| Bool_t | m_InitLocked |
| Bool_t | m_NormalizeOutput |
| TJetNet::TJetNet | ( | void | ) |
| TJetNet::TJetNet | ( | Int_t | aTestCount, |
| Int_t | aTrainCount, | ||
| const Int_t | aLayersCnt, | ||
| const Int_t * | aLayers ) |
Definition at line 38 of file TJetNet.cxx.
|
virtual |
Definition at line 91 of file TJetNet.cxx.
|
private |
| TTrainedNetwork * TJetNet::createTrainedNetwork | ( | ) | const |
Definition at line 104 of file TJetNet.cxx.
| void TJetNet::DumpToFile | ( | TString | aFileName = "fort.8" | ) |
Definition at line 954 of file TJetNet.cxx.
| Int_t TJetNet::Epoch | ( | void | ) |
Definition at line 696 of file TJetNet.cxx.
| void TJetNet::Evaluate | ( | ) |
Definition at line 926 of file TJetNet.cxx.
| void TJetNet::Evaluate | ( | Int_t | aPattern | ) |
Definition at line 932 of file TJetNet.cxx.
| Int_t TJetNet::GetActivationFunction | ( | Int_t | layerN | ) | const |
Definition at line 1167 of file TJetNet.cxx.
| Int_t TJetNet::GetActivationFunction | ( | void | ) | const |
Definition at line 1161 of file TJetNet.cxx.
|
inline |
| Int_t TJetNet::GetErrorMeasure | ( | void | ) |
Definition at line 1156 of file TJetNet.cxx.
|
inline |
|
inline |
|
inline |
|
inline |
| Double_t TJetNet::GetInitialWeightsWidth | ( | void | ) |
Definition at line 1187 of file TJetNet.cxx.
|
inline |
| Double_t TJetNet::GetInputTestSet | ( | Int_t | aPatternInd, |
| Int_t | aInputInd ) |
Definition at line 763 of file TJetNet.cxx.
|
inline |
| Double_t TJetNet::GetLearningRate | ( | void | ) |
Definition at line 1177 of file TJetNet.cxx.
| Double_t TJetNet::GetLearningRateDecrease | ( | void | ) |
Definition at line 1192 of file TJetNet.cxx.
| Double_t TJetNet::GetMomentum | ( | void | ) |
Definition at line 1182 of file TJetNet.cxx.
| Int_t TJetNet::GetMSTJN | ( | Int_t | aIndex | ) |
Definition at line 1202 of file TJetNet.cxx.
| Double_t TJetNet::GetOutput | ( | Int_t | aIndex = 0 | ) |
Definition at line 948 of file TJetNet.cxx.
| Double_t TJetNet::GetOutputTestSet | ( | Int_t | aPatternInd, |
| Int_t | aOutputInd ) |
Definition at line 769 of file TJetNet.cxx.
| Double_t TJetNet::GetOutputTrainSet | ( | Int_t | aPatternInd, |
| Int_t | aOutputInd ) |
Definition at line 746 of file TJetNet.cxx.
| Double_t TJetNet::GetPARJN | ( | Int_t | aIndex | ) |
Definition at line 1207 of file TJetNet.cxx.
| Int_t TJetNet::GetPatternsPerUpdate | ( | void | ) |
Definition at line 1172 of file TJetNet.cxx.
| Int_t TJetNet::GetPottsUnits | ( | ) |
Definition at line 1197 of file TJetNet.cxx.
| Double_t TJetNet::GetThreshold | ( | Int_t | aLayerInd, |
| Int_t | aNodeInd ) const |
Definition at line 979 of file TJetNet.cxx.
| Int_t TJetNet::GetUnitCount | ( | Int_t | aLayer | ) |
Definition at line 1064 of file TJetNet.cxx.
| Int_t TJetNet::GetUpdatesPerEpoch | ( | void | ) |
Definition at line 1146 of file TJetNet.cxx.
| Int_t TJetNet::GetUpdatingProcedure | ( | void | ) |
Definition at line 1151 of file TJetNet.cxx.
| Double_t TJetNet::GetWeight | ( | Int_t | aLayerInd, |
| Int_t | aNodeInd, | ||
| Int_t | aConnectedNodeInd ) const |
Definition at line 972 of file TJetNet.cxx.
| void TJetNet::Init | ( | void | ) |
Definition at line 670 of file TJetNet.cxx.
| void TJetNet::LoadDataAscii | ( | TString | aFileName = "jndata.dat" | ) |
Definition at line 815 of file TJetNet.cxx.
| void TJetNet::LoadDataRoot | ( | TString | aFileName = "jndata.root" | ) |
Definition at line 921 of file TJetNet.cxx.
|
inline |
Definition at line 137 of file TJetNet.h.
|
private |
Definition at line 290 of file TJetNet.cxx.
|
private |
Definition at line 285 of file TJetNet.cxx.
| void TJetNet::Normalize | ( | void | ) |
Definition at line 1048 of file TJetNet.cxx.
| void TJetNet::NormalizeOutput | ( | bool | isTrue = true | ) |
Definition at line 1141 of file TJetNet.cxx.
| void TJetNet::Print | ( | void | ) |
Definition at line 295 of file TJetNet.cxx.
| void TJetNet::Randomize | ( | void | ) |
Definition at line 1055 of file TJetNet.cxx.
| void TJetNet::readBackTrainedNetwork | ( | const TTrainedNetwork * | trainedNetwork | ) |
Definition at line 207 of file TJetNet.cxx.
| void TJetNet::ReadFromFile | ( | TString | aFileName = "fort.8" | ) |
Definition at line 962 of file TJetNet.cxx.
|
private |
Definition at line 1020 of file TJetNet.cxx.
| void TJetNet::SaveDataAscii | ( | TString | aFileName = "jndata.dat" | ) |
Definition at line 775 of file TJetNet.cxx.
| void TJetNet::SaveDataRoot | ( | TString | aFileName = "jndata.root" | ) |
Definition at line 916 of file TJetNet.cxx.
| void TJetNet::SelectiveFields | ( | Int_t | aLayerA, |
| Int_t | aNodeA1, | ||
| Int_t | aNodeA2, | ||
| Int_t | aNodeB1, | ||
| Int_t | aNodeB2, | ||
| Int_t | aSwitch = 0 ) |
Definition at line 986 of file TJetNet.cxx.
| void TJetNet::SetActivationFunction | ( | Int_t | aValue | ) |
Definition at line 1091 of file TJetNet.cxx.
| void TJetNet::SetActivationFunction | ( | Int_t | aValue, |
| Int_t | layerN ) |
Definition at line 1098 of file TJetNet.cxx.
| void TJetNet::SetErrorMeasure | ( | Int_t | aValue | ) |
Definition at line 1085 of file TJetNet.cxx.
| void TJetNet::SetEventWeightTestSet | ( | Int_t | aPatternInd, |
| Double_t | aValue ) |
Definition at line 758 of file TJetNet.cxx.
| void TJetNet::SetEventWeightTrainSet | ( | Int_t | aPatternInd, |
| Double_t | aValue ) |
Definition at line 752 of file TJetNet.cxx.
| void TJetNet::SetInitialWeightsWidth | ( | Double_t | aValue | ) |
Definition at line 1124 of file TJetNet.cxx.
| void TJetNet::SetInputs | ( | Int_t | aIndex = 0, |
| Double_t | aValue = 0.0 ) |
Definition at line 942 of file TJetNet.cxx.
| void TJetNet::SetInputTestSet | ( | Int_t | aPatternInd, |
| Int_t | aInputInd, | ||
| Double_t | aValue ) |
Definition at line 740 of file TJetNet.cxx.
| void TJetNet::SetInputTrainSet | ( | Int_t | aPatternInd, |
| Int_t | aInputInd, | ||
| Double_t | aValue ) |
Definition at line 728 of file TJetNet.cxx.
| void TJetNet::SetLearningRate | ( | Double_t | aValue | ) |
Definition at line 1111 of file TJetNet.cxx.
| void TJetNet::SetLearningRateDecrease | ( | Double_t | aValue | ) |
Definition at line 1130 of file TJetNet.cxx.
| void TJetNet::SetMomentum | ( | Double_t | aValue | ) |
Definition at line 1118 of file TJetNet.cxx.
| void TJetNet::SetMSTJN | ( | Int_t | aIndex, |
| Int_t | aValue ) |
Definition at line 1212 of file TJetNet.cxx.
|
inline |
Definition at line 196 of file TJetNet.h.
| void TJetNet::SetOutputTrainSet | ( | Int_t | aPatternInd, |
| Int_t | aOutputInd, | ||
| Double_t | aValue ) |
Definition at line 734 of file TJetNet.cxx.
| void TJetNet::SetPARJN | ( | Int_t | aIndex, |
| Double_t | aValue ) |
Definition at line 1217 of file TJetNet.cxx.
| void TJetNet::SetPatternsPerUpdate | ( | Int_t | aValue | ) |
Definition at line 1105 of file TJetNet.cxx.
| void TJetNet::SetPottsUnits | ( | Int_t | aValue | ) |
Definition at line 1136 of file TJetNet.cxx.
| void TJetNet::SetUpdatesPerEpoch | ( | Int_t | aValue | ) |
Definition at line 1071 of file TJetNet.cxx.
| void TJetNet::SetUpdatingProcedure | ( | Int_t | aValue | ) |
Definition at line 1078 of file TJetNet.cxx.
| void TJetNet::Shuffle | ( | Bool_t | aShuffleTrainSet = true, |
| Bool_t | aShuffleTestSet = true ) |
Definition at line 1222 of file TJetNet.cxx.
| Double_t TJetNet::Test | ( | void | ) |
Definition at line 320 of file TJetNet.cxx.
| Double_t TJetNet::TestBTAG | ( | void | ) |
Definition at line 362 of file TJetNet.cxx.
| Double_t TJetNet::Train | ( | void | ) |
Definition at line 618 of file TJetNet.cxx.
|
inline |
Definition at line 138 of file TJetNet.h.
| void TJetNet::writeNetworkInfo | ( | Int_t | typeOfInfo = 0 | ) |
Definition at line 664 of file TJetNet.cxx.
|
private |
|
private |
|
private |
|
private |
|
private |