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(), i, j, relval_steps::k, prof2calltree::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, j, 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, i, recoMuon::in, j, 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 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 i, j, LEARN, and NET.
Referenced by AllocNetwork().
int FreePatterns | ( | int | ifile | ) |
Definition at line 3232 of file mlp_gen.cc.
References 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, i, j, and tmp.
Referenced by MLP_Epoch().
void GetGammaDelta | ( | ) |
Definition at line 1313 of file mlp_gen.cc.
References i, recoMuon::in, LEARN, and NET.
Referenced by MLP_Epoch().
void getLexemes | ( | char * | s, |
char ** | ss | ||
) |
int GetNetStructure | ( | char * | s, |
int * | Nlayer, | ||
int * | Nneur | ||
) |
Definition at line 3592 of file mlp_gen.cc.
References 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 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 i, MLP_Rand(), and NET.
Referenced by PhysicsTools::MLP::MLP().
int LearnAlloc | ( | ) |
Definition at line 2685 of file mlp_gen.cc.
References 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 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, 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, i, j, contentValuesFiles::m, gen::n, and alignCSCRings::r.
Referenced by MLP_Test_MM().
Definition at line 3682 of file mlp_gen.cc.
References EnergyCorrector::c, i, j, contentValuesFiles::m, gen::n, and alignCSCRings::r.
Referenced by MLP_Out(), and MLP_Out2().
Definition at line 3817 of file mlp_gen.cc.
References j, and relval_steps::k.
Referenced by MLP_Test_MM().
Definition at line 62 of file mlp_gen.cc.
References i, recoMuon::in, j, contentValuesFiles::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 i, recoMuon::in, contentValuesFiles::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, i, recoMuon::in, j, contentValuesFiles::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 j, timingPdfMaker::mean, MLP_StatInputs(), NET, PAT, and stat_::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(), 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 j, and 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, eta, EtaDecay(), cuy::ii, recoMuon::in, LEARN, MLP_Out2(), NET, PAT, ShuffleExamples(), and create_public_pileup_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 j, timingPdfMaker::mean, MLP_StatInputs(), NET, PAT, stat_::sigma, and STAT.
void PrintWeights | ( | ) |
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(), i, compare_using_db::ifile, prof2calltree::l, LEARN, geometryCSVtoXML::line, MLP_SetNet(), NET, nin, NLMAX, nout, np, AlCaHLTBitMon_ParallelJobs::p, PAT, ReadPatterns(), alignCSCRings::s, indexGen::s2, and contentValuesCheck::ss.
Referenced by ReadPatterns().
int SaveWeights | ( | char * | filename, |
int | iepoch | ||
) |
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.
int ShuffleExamples | ( | int | n, |
int * | index | ||
) |
Definition at line 2102 of file mlp_gen.cc.
References a, i, cuy::ii, 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 eta, recoMuon::in, LEARN, and NET.
Referenced by MLP_Epoch().
int StochStepHyb | ( | ) |
Definition at line 926 of file mlp_gen.cc.
References eta, recoMuon::in, LEARN, MLP_ResLin(), and NET.