Go to the source code of this file.
Classes | |
struct | divers_ |
struct | learn_ |
struct | net_ |
struct | pat_ |
struct | stat_ |
Macros | |
#define | DIVERS divers_ |
#define | LEARN learn_ |
#define | NET net_ |
#define | PAT pat_ |
#define | STAT stat_ |
Typedefs | |
typedef double | dbl |
typedef double | type_pat |
Variables | |
struct net_ | MLP_HIDDEN |
#define DIVERS divers_ |
Definition at line 54 of file mlp_gen.h.
Referenced by MLP_PrCFun(), MLP_PrFFun(), and ReadPatterns().
#define LEARN learn_ |
Definition at line 36 of file mlp_gen.h.
Referenced by AllocNetwork(), BFGSdir(), CGDir(), DecreaseSearch(), DeDwNorm(), DeDwProd(), DeDwSave(), DeDwSaveZero(), DeDwScale(), DeDwSum(), DeDwZero(), DerivDir(), EtaDecay(), FixedStep(), FreeNetwork(), GetGammaDelta(), LearnAlloc(), LineSearch(), LineSearchHyb(), MLP_Epoch(), MLP_ResLin(), MLP_Stochastic(), MLP_Test(), ReadPatterns(), SetLambda(), PhysicsTools::MLP::setLearn(), SteepestDir(), StochStep(), and StochStepHyb().
#define NET net_ |
Definition at line 25 of file mlp_gen.h.
Referenced by AllocNetwork(), BFGSdir(), CGDir(), DecreaseSearch(), DeDwNorm(), DeDwProd(), DeDwSave(), DeDwSaveZero(), DeDwScale(), DeDwSum(), DeDwZero(), DerivDir(), PhysicsTools::MLP::eval(), FixedStep(), FreeNetwork(), GetGammaDelta(), InitWeights(), LearnAlloc(), LearnFree(), LineSearch(), LineSearchHyb(), LoadWeights(), MLP_Epoch(), MLP_Line(), MLP_LineHyb(), MLP_Out(), MLP_Out2(), MLP_Out_T(), MLP_PrCFun(), MLP_PrFFun(), MLP_PrintInputStat(), MLP_ResLin(), MLP_SetNet(), MLP_Stochastic(), MLP_Test(), MLP_Test_MM(), MLP_Train(), NormalizeInputs(), PrintWeights(), ReadPatterns(), SaveWeights(), SetDefaultFuncs(), SetLambda(), SetTransFunc(), SteepestDir(), StochStep(), and StochStepHyb().
#define PAT pat_ |
Definition at line 45 of file mlp_gen.h.
Referenced by AllocPatterns(), PhysicsTools::MLP::clear(), DeDwSum(), FreePatterns(), MLP_Epoch(), MLP_PrintInputStat(), MLP_ResLin(), MLP_Stochastic(), MLP_Test(), MLP_Test_MM(), MLP_Train(), NormalizeInputs(), ReadPatterns(), PhysicsTools::MLP::set(), and PhysicsTools::MLP::setNPattern().
#define STAT stat_ |
Definition at line 60 of file mlp_gen.h.
Referenced by MLP_PrCFun(), MLP_PrFFun(), and NormalizeInputs().
int AllocNetwork | ( | int | Nlayer, |
int * | Neurons | ||
) |
Definition at line 3449 of file mlp_gen.cc.
References FreeNetwork(), mps_fire::i, gen::k, checklumidiff::l, LEARN, and NET.
Referenced by MLP_SetNet().
int AllocPatterns | ( | int | ifile, |
int | npat, | ||
int | nin, | ||
int | nout, | ||
int | iadd | ||
) |
Definition at line 3077 of file mlp_gen.cc.
References FreePatterns(), compare_using_db::ifile, PAT, and tmp.
Referenced by PhysicsTools::MLP::init(), and ReadPatterns().
void AllocWeights | ( | ) |
void BFGSdir | ( | int | Nweights | ) |
Definition at line 1340 of file mlp_gen.cc.
References g, mps_fire::i, recoMuon::in, GetRecoTauVFromDQM_MC_cff::kk, LEARN, NET, and alignCSCRings::s.
Referenced by MLP_Epoch().
void CGDir | ( | dbl | beta | ) |
Definition at line 1266 of file mlp_gen.cc.
References recoMuon::in, LEARN, and NET.
Referenced by MLP_Epoch().
int CountLexemes | ( | char * | string | ) |
Definition at line 2585 of file mlp_gen.cc.
References mps_fire::i, NULL, and tmp.
Referenced by getLexemes(), and ReadPatterns().
Definition at line 1616 of file mlp_gen.cc.
References recoMuon::in, LEARN, MLP_Line(), MLP_Test(), NET, and metsig::tau.
dbl DeDwNorm | ( | ) |
Definition at line 998 of file mlp_gen.cc.
References createTree::dd, recoMuon::in, LEARN, and NET.
Referenced by MLP_Epoch().
dbl DeDwProd | ( | ) |
Definition at line 1020 of file mlp_gen.cc.
References createTree::dd, recoMuon::in, LEARN, and NET.
Referenced by MLP_Epoch().
void DeDwSave | ( | ) |
Definition at line 1078 of file mlp_gen.cc.
References recoMuon::in, LEARN, and NET.
void DeDwSaveZero | ( | ) |
Definition at line 1097 of file mlp_gen.cc.
References recoMuon::in, LEARN, and NET.
Referenced by MLP_Epoch().
void DeDwScale | ( | int | Nexamples | ) |
Definition at line 1060 of file mlp_gen.cc.
References recoMuon::in, LEARN, and NET.
Referenced by MLP_Epoch().
Definition at line 1123 of file mlp_gen.cc.
References a, b, cuy::ii, recoMuon::in, LEARN, NET, and PAT.
Referenced by MLP_Train().
void DeDwZero | ( | ) |
Definition at line 1041 of file mlp_gen.cc.
References recoMuon::in, LEARN, and NET.
dbl DerivDir | ( | ) |
Definition at line 1288 of file mlp_gen.cc.
References recoMuon::in, LEARN, and NET.
Referenced by MLP_Epoch().
void EtaDecay | ( | ) |
int FixedStep | ( | dbl | alpha | ) |
Definition at line 1704 of file mlp_gen.cc.
References recoMuon::in, LEARN, MLP_Line(), and NET.
void FreeNetwork | ( | ) |
Definition at line 3531 of file mlp_gen.cc.
References mps_fire::i, LEARN, and NET.
Referenced by AllocNetwork().
int FreePatterns | ( | int | ifile | ) |
Definition at line 3232 of file mlp_gen.cc.
References mps_fire::i, compare_using_db::ifile, and PAT.
Referenced by AllocPatterns(), and PhysicsTools::MLP::clear().
void FreeWeights | ( | ) |
int GetBFGSH | ( | int | Nweights | ) |
Definition at line 1418 of file mlp_gen.cc.
References a, b, mps_fire::i, and tmp.
Referenced by MLP_Epoch().
void GetGammaDelta | ( | ) |
Definition at line 1313 of file mlp_gen.cc.
References mps_fire::i, recoMuon::in, LEARN, and NET.
Referenced by MLP_Epoch().
void getLexemes | ( | char * | s, |
char ** | ss | ||
) |
Definition at line 2615 of file mlp_gen.cc.
References CountLexemes(), mps_fire::i, gen::n, NULL, and tmp.
int GetNetStructure | ( | char * | s, |
int * | Nlayer, | ||
int * | Nneur | ||
) |
Definition at line 3592 of file mlp_gen.cc.
References mps_fire::i, NLMAX, NULL, and tmp.
Referenced by ReadPatterns().
void getnLexemes | ( | int | n, |
char * | s, | ||
char ** | ss | ||
) |
Definition at line 2601 of file mlp_gen.cc.
References mps_fire::i, gen::n, NULL, and tmp.
Referenced by ReadPatterns().
void InitBFGSH | ( | int | Nweights | ) |
void InitWeights | ( | ) |
Definition at line 2147 of file mlp_gen.cc.
References mps_fire::i, MLP_Rand(), and NET.
Referenced by PhysicsTools::MLP::MLP().
int LearnAlloc | ( | ) |
Definition at line 2685 of file mlp_gen.cc.
References mps_fire::i, recoMuon::in, LEARN, LearnFree(), and NET.
Referenced by PhysicsTools::MLP::MLP().
void LearnFree | ( | ) |
Definition at line 2640 of file mlp_gen.cc.
References recoMuon::in, and NET.
Referenced by LearnAlloc(), and PhysicsTools::MLP::~MLP().
Definition at line 1478 of file mlp_gen.cc.
References recoMuon::in, LastAlpha, LEARN, MLP_Line(), MLP_Test(), NET, and metsig::tau.
Referenced by MLP_Epoch().
int LineSearchHyb | ( | dbl * | alpmin, |
int * | Ntest | ||
) |
Definition at line 1781 of file mlp_gen.cc.
References recoMuon::in, LastAlpha, LEARN, MLP_LineHyb(), MLP_Test(), NET, and metsig::tau.
Referenced by MLP_Epoch().
int LoadWeights | ( | char * | filename, |
int * | iepoch | ||
) |
Definition at line 3022 of file mlp_gen.cc.
References mps_fire::i, NET, AlCaHLTBitMon_ParallelJobs::p, and alignCSCRings::s.
Referenced by PhysicsTools::MLP::load().
Definition at line 706 of file mlp_gen.cc.
References beta, BFGSdir(), CGDir(), DeDwNorm(), DeDwProd(), DeDwSaveZero(), DeDwScale(), DerivDir(), GetBFGSH(), GetGammaDelta(), InitBFGSH(), LEARN, LineSearch(), LineSearchHyb(), MLP_ResLin(), MLP_Stochastic(), MLP_Train(), NET, groupFilesInBlocks::nn, PAT, PrintWeights(), parseEventContent::prod, SetLambda(), ShuffleExamples(), SteepestDir(), and StochStep().
Referenced by PhysicsTools::MLP::train().
Definition at line 1757 of file mlp_gen.cc.
References recoMuon::in, and NET.
Referenced by DecreaseSearch(), FixedStep(), and LineSearch().
Definition at line 1923 of file mlp_gen.cc.
References recoMuon::in, MLP_ResLin(), and NET.
Referenced by LineSearchHyb().
Definition at line 3748 of file mlp_gen.cc.
References EnergyCorrector::c, edmIntegrityCheck::d, mps_fire::i, funct::m, gen::n, and alignCSCRings::r.
Referenced by MLP_Test_MM().
Definition at line 3682 of file mlp_gen.cc.
References EnergyCorrector::c, edmIntegrityCheck::d, mps_fire::i, funct::m, gen::n, and alignCSCRings::r.
Referenced by MLP_Out(), and MLP_Out2().
Definition at line 62 of file mlp_gen.cc.
References mps_fire::i, recoMuon::in, funct::m, MLP_MatrixVectorBias(), MLP_vSigmoideDeriv(), and NET.
Referenced by MLP_ResLin().
void MLP_Out2 | ( | type_pat * | rrin | ) |
Definition at line 184 of file mlp_gen.cc.
References mps_fire::i, recoMuon::in, funct::m, MLP_MatrixVectorBias(), MLP_vSigmoideDeriv(), NET, and nin.
Referenced by MLP_Stochastic(), and MLP_Train().
void MLP_Out_T | ( | type_pat * | rrin | ) |
Definition at line 113 of file mlp_gen.cc.
References a, mps_fire::i, recoMuon::in, funct::m, MLP_Sigmoide(), and NET.
Referenced by PhysicsTools::MLP::eval(), and MLP_Test().
int MLP_PrCFun | ( | char * | filename | ) |
Definition at line 2878 of file mlp_gen.cc.
References DIVERS, recoMuon::in, NET, and STAT.
int MLP_PrFFun | ( | char * | filename | ) |
Definition at line 2769 of file mlp_gen.cc.
References DIVERS, recoMuon::in, NET, and STAT.
int MLP_PrintInputStat | ( | ) |
Definition at line 3332 of file mlp_gen.cc.
References RecoTauDiscriminantConfiguration::mean, MLP_StatInputs(), NET, PAT, and ctppsDiamondLocalTracks_cfi::sigma.
Definition at line 2131 of file mlp_gen.cc.
References random.
Referenced by InitWeights(), and ShuffleExamples().
void MLP_ResLin | ( | ) |
Definition at line 1971 of file mlp_gen.cc.
References dgels_(), recoMuon::in, LEARN, MLP_Out(), MLP_Test(), NET, PAT, and mathSSE::sqrt().
Referenced by MLP_Epoch(), MLP_LineHyb(), and StochStepHyb().
int MLP_SetNet | ( | int * | nl, |
int * | nn | ||
) |
Definition at line 3639 of file mlp_gen.cc.
References AllocNetwork(), createfilelist::int, NET, NLMAX, and SetDefaultFuncs().
Referenced by PhysicsTools::MLP::MLP(), and ReadPatterns().
int MLP_StatInputs | ( | int | Nexamples, |
int | Ninputs, | ||
type_pat ** | inputs, | ||
dbl * | mean, | ||
dbl * | sigma, | ||
dbl * | minimum, | ||
dbl * | maximum | ||
) |
Definition at line 3275 of file mlp_gen.cc.
References mathSSE::sqrt().
Referenced by MLP_PrintInputStat(), and NormalizeInputs().
dbl MLP_Stochastic | ( | ) |
Definition at line 518 of file mlp_gen.cc.
References a, b, createTree::dd, stringResolutionProvider_cfi::eta, EtaDecay(), cuy::ii, recoMuon::in, LEARN, MLP_Out2(), NET, PAT, ShuffleExamples(), and create_public_lumi_plots::weights.
Referenced by MLP_Epoch().
dbl MLP_Test | ( | int | ifile, |
int | regul | ||
) |
Definition at line 446 of file mlp_gen.cc.
References compare_using_db::ifile, recoMuon::in, LEARN, MLP_Out_T(), MLP_Test_MM(), NET, PAT, and tmp.
Referenced by DecreaseSearch(), LineSearch(), LineSearchHyb(), MLP_ResLin(), and SetLambda().
int MLP_Train | ( | int * | ipat, |
dbl * | err | ||
) |
Definition at line 895 of file mlp_gen.cc.
References DeDwSum(), recoMuon::in, MLP_Out2(), NET, and PAT.
Referenced by MLP_Epoch().
int NormalizeInputs | ( | ) |
Definition at line 3378 of file mlp_gen.cc.
References objects.autophobj::float, RecoTauDiscriminantConfiguration::mean, MLP_StatInputs(), NET, PAT, ctppsDiamondLocalTracks_cfi::sigma, and STAT.
void PrintWeights | ( | ) |
Definition at line 2168 of file mlp_gen.cc.
References mps_fire::i, and NET.
Referenced by MLP_Epoch().
int ReadPatterns | ( | char * | filename, |
int | ifile, | ||
int * | inet, | ||
int * | ilearn, | ||
int * | iexamples | ||
) |
Definition at line 2229 of file mlp_gen.cc.
References AllocPatterns(), CLEN, CountLexemes(), DIVERS, GetNetStructure(), getnLexemes(), mps_fire::i, compare_using_db::ifile, checklumidiff::l, LEARN, geometryCSVtoXML::line, MLP_SetNet(), NET, nin, NLMAX, nout, np, AlCaHLTBitMon_ParallelJobs::p, PAT, ReadPatterns(), alignCSCRings::s, and indexGen::s2.
Referenced by ReadPatterns().
int SaveWeights | ( | char * | filename, |
int | iepoch | ||
) |
Definition at line 2972 of file mlp_gen.cc.
References mps_fire::i, and NET.
Referenced by PhysicsTools::MLP::save().
void SetDefaultFuncs | ( | ) |
Definition at line 1223 of file mlp_gen.cc.
References recoMuon::in, and NET.
Referenced by MLP_SetNet().
void SetLambda | ( | double | Wmax | ) |
Definition at line 1949 of file mlp_gen.cc.
References LEARN, MLP_Test(), and NET.
Referenced by MLP_Epoch().
int SetTransFunc | ( | int | layer, |
int | neuron, | ||
int | func | ||
) |
Definition at line 1200 of file mlp_gen.cc.
References RecoEcal_EventContent_cff::func, NET, and NLMAX.
int ShuffleExamples | ( | int | n, |
int * | index | ||
) |
Definition at line 2102 of file mlp_gen.cc.
References a, mps_fire::i, cuy::ii, createfilelist::int, MLP_Rand(), and gen::n.
Referenced by MLP_Epoch(), and MLP_Stochastic().
void SteepestDir | ( | ) |
Definition at line 1244 of file mlp_gen.cc.
References recoMuon::in, LEARN, and NET.
Referenced by MLP_Epoch().
int StochStep | ( | ) |
Definition at line 965 of file mlp_gen.cc.
References stringResolutionProvider_cfi::eta, recoMuon::in, LEARN, and NET.
Referenced by MLP_Epoch().
int StochStepHyb | ( | ) |
Definition at line 926 of file mlp_gen.cc.
References stringResolutionProvider_cfi::eta, recoMuon::in, LEARN, MLP_ResLin(), and NET.