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 3445 of file mlp_gen.cc.
References FreeNetwork(), i, j, gen::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 3075 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 1343 of file mlp_gen.cc.
References g, i, recoMuon::in, j, LEARN, NET, and alignCSCRings::s.
Referenced by MLP_Epoch().
void CGDir | ( | dbl | beta | ) |
Definition at line 1269 of file mlp_gen.cc.
References recoMuon::in, LEARN, and NET.
Referenced by MLP_Epoch().
int CountLexemes | ( | char * | string | ) |
Definition at line 1614 of file mlp_gen.cc.
References recoMuon::in, LEARN, MLP_Line(), MLP_Test(), NET, and metsig::tau.
dbl DeDwNorm | ( | ) |
Definition at line 1001 of file mlp_gen.cc.
References createTree::dd, recoMuon::in, LEARN, and NET.
Referenced by MLP_Epoch().
dbl DeDwProd | ( | ) |
Definition at line 1023 of file mlp_gen.cc.
References createTree::dd, recoMuon::in, LEARN, and NET.
Referenced by MLP_Epoch().
void DeDwSave | ( | ) |
Definition at line 1081 of file mlp_gen.cc.
References recoMuon::in, LEARN, and NET.
void DeDwSaveZero | ( | ) |
Definition at line 1100 of file mlp_gen.cc.
References recoMuon::in, LEARN, and NET.
Referenced by MLP_Epoch().
void DeDwScale | ( | int | Nexamples | ) |
Definition at line 1063 of file mlp_gen.cc.
References recoMuon::in, LEARN, and NET.
Referenced by MLP_Epoch().
Definition at line 1126 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 1044 of file mlp_gen.cc.
References recoMuon::in, LEARN, and NET.
dbl DerivDir | ( | ) |
Definition at line 1291 of file mlp_gen.cc.
References recoMuon::in, LEARN, and NET.
Referenced by MLP_Epoch().
void EtaDecay | ( | ) |
int FixedStep | ( | dbl | alpha | ) |
Definition at line 1702 of file mlp_gen.cc.
References recoMuon::in, LEARN, MLP_Line(), and NET.
void FreeNetwork | ( | ) |
Definition at line 3527 of file mlp_gen.cc.
References i, j, LEARN, and NET.
Referenced by AllocNetwork().
int FreePatterns | ( | int | ifile | ) |
Definition at line 3230 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 1421 of file mlp_gen.cc.
References a, b, i, j, and tmp.
Referenced by MLP_Epoch().
void GetGammaDelta | ( | ) |
Definition at line 1316 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 3588 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 2599 of file mlp_gen.cc.
References i, n, NULL, and tmp.
Referenced by ReadPatterns().
void InitBFGSH | ( | int | Nweights | ) |
void InitWeights | ( | ) |
Definition at line 2145 of file mlp_gen.cc.
References i, MLP_Rand(), and NET.
Referenced by PhysicsTools::MLP::MLP().
int LearnAlloc | ( | ) |
Definition at line 2683 of file mlp_gen.cc.
References i, recoMuon::in, LEARN, LearnFree(), and NET.
Referenced by PhysicsTools::MLP::MLP().
void LearnFree | ( | ) |
Definition at line 2638 of file mlp_gen.cc.
References recoMuon::in, and NET.
Referenced by LearnAlloc(), and PhysicsTools::MLP::~MLP().
Definition at line 1476 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 1779 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 3020 of file mlp_gen.cc.
References i, NET, AlCaHLTBitMon_ParallelJobs::p, and alignCSCRings::s.
Referenced by PhysicsTools::MLP::load().
Definition at line 709 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 1755 of file mlp_gen.cc.
References recoMuon::in, and NET.
Referenced by DecreaseSearch(), FixedStep(), and LineSearch().
Definition at line 1921 of file mlp_gen.cc.
References recoMuon::in, MLP_ResLin(), and NET.
Referenced by LineSearchHyb().
Definition at line 3744 of file mlp_gen.cc.
References trackerHits::c, i, j, m, n, and alignCSCRings::r.
Referenced by MLP_Test_MM().
Definition at line 3678 of file mlp_gen.cc.
References trackerHits::c, i, j, m, n, and alignCSCRings::r.
Referenced by MLP_Out(), and MLP_Out2().
Definition at line 63 of file mlp_gen.cc.
References i, recoMuon::in, j, m, MLP_MatrixVectorBias(), MLP_vSigmoideDeriv(), and NET.
Referenced by MLP_ResLin().
void MLP_Out2 | ( | type_pat * | rrin | ) |
Definition at line 186 of file mlp_gen.cc.
References i, recoMuon::in, 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 115 of file mlp_gen.cc.
References a, i, recoMuon::in, j, m, MLP_Sigmoide(), and NET.
Referenced by PhysicsTools::MLP::eval(), and MLP_Test().
int MLP_PrCFun | ( | char * | filename | ) |
Definition at line 2876 of file mlp_gen.cc.
References DIVERS, recoMuon::in, NET, and STAT.
int MLP_PrFFun | ( | char * | filename | ) |
Definition at line 2767 of file mlp_gen.cc.
References DIVERS, recoMuon::in, NET, and STAT.
int MLP_PrintInputStat | ( | ) |
Definition at line 3330 of file mlp_gen.cc.
References j, timingPdfMaker::mean, MLP_StatInputs(), NET, PAT, and stat_::sigma.
Definition at line 2129 of file mlp_gen.cc.
References random.
Referenced by InitWeights(), and ShuffleExamples().
void MLP_ResLin | ( | ) |
Definition at line 1969 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 3635 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 3273 of file mlp_gen.cc.
References j, and mathSSE::sqrt().
Referenced by MLP_PrintInputStat(), and NormalizeInputs().
dbl MLP_Stochastic | ( | ) |
Definition at line 521 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 449 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 898 of file mlp_gen.cc.
References DeDwSum(), recoMuon::in, MLP_Out2(), NET, and PAT.
Referenced by MLP_Epoch().
int NormalizeInputs | ( | ) |
Definition at line 3376 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 2227 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, and indexGen::s2.
Referenced by ReadPatterns().
int SaveWeights | ( | char * | filename, |
int | iepoch | ||
) |
void SetDefaultFuncs | ( | ) |
Definition at line 1226 of file mlp_gen.cc.
References recoMuon::in, and NET.
Referenced by MLP_SetNet().
void SetLambda | ( | double | Wmax | ) |
Definition at line 1947 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 1203 of file mlp_gen.cc.
int ShuffleExamples | ( | int | n, |
int * | index | ||
) |
Definition at line 2100 of file mlp_gen.cc.
References a, i, cuy::ii, MLP_Rand(), and n.
Referenced by MLP_Epoch(), and MLP_Stochastic().
void SteepestDir | ( | ) |
Definition at line 1247 of file mlp_gen.cc.
References recoMuon::in, LEARN, and NET.
Referenced by MLP_Epoch().
int StochStep | ( | ) |
Definition at line 968 of file mlp_gen.cc.
References eta(), recoMuon::in, LEARN, and NET.
Referenced by MLP_Epoch().
int StochStepHyb | ( | ) |
Definition at line 929 of file mlp_gen.cc.
References eta(), recoMuon::in, LEARN, MLP_ResLin(), and NET.