CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Macros | Typedefs | Functions | Variables
mlp_gen.h File Reference

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
 

Functions

int AllocNetwork (int Nlayer, int *Neurons) MLP_HIDDEN
 
int AllocPatterns (int ifile, int npat, int nin, int nout, int iadd) MLP_HIDDEN
 
void AllocWeights () MLP_HIDDEN
 
void BFGSdir (int Nweights) MLP_HIDDEN
 
void CGDir (dbl beta) MLP_HIDDEN
 
int CountLexemes (char *string) MLP_HIDDEN
 
int DecreaseSearch (dbl *alpmin, int *Ntest, dbl Err0) MLP_HIDDEN
 
dbl DeDwNorm () MLP_HIDDEN
 
dbl DeDwProd () MLP_HIDDEN
 
void DeDwSave () MLP_HIDDEN
 
void DeDwSaveZero () MLP_HIDDEN
 
void DeDwScale (int Nexamples) MLP_HIDDEN
 
int DeDwSum (type_pat *ans, dbl *out, int ipat) MLP_HIDDEN
 
void DeDwZero () MLP_HIDDEN
 
dbl DerivDir () MLP_HIDDEN
 
void EtaDecay () MLP_HIDDEN
 
int FixedStep (dbl alpha) MLP_HIDDEN
 
void FreeNetwork () MLP_HIDDEN
 
int FreePatterns (int ifile) MLP_HIDDEN
 
void FreeWeights () MLP_HIDDEN
 
int GetBFGSH (int Nweights) MLP_HIDDEN
 
void GetGammaDelta () MLP_HIDDEN
 
void getLexemes (char *s, char **ss) MLP_HIDDEN
 
int GetNetStructure (char *s, int *Nlayer, int *Nneur) MLP_HIDDEN
 
void getnLexemes (int n, char *s, char **ss) MLP_HIDDEN
 
void InitBFGSH (int Nweights) MLP_HIDDEN
 
void InitWeights () MLP_HIDDEN
 
int LearnAlloc () MLP_HIDDEN
 
void LearnFree () MLP_HIDDEN
 
int LineSearch (dbl *alpmin, int *Ntest, dbl Err0) MLP_HIDDEN
 
int LineSearchHyb (dbl *alpmin, int *Ntest) MLP_HIDDEN
 
int LoadWeights (char *filename, int *iepoch) MLP_HIDDEN
 
dbl MLP_Epoch (int iepoch, dbl *alpmin, int *ntest) MLP_HIDDEN
 
void MLP_Line (dbl ***w0, dbl alpha) MLP_HIDDEN
 
void MLP_LineHyb (dbl ***w0, dbl alpha) MLP_HIDDEN
 
void MLP_MatrixVector (dbl *M, type_pat *v, dbl *r, int n, int m) MLP_HIDDEN
 
void MLP_MatrixVectorBias (dbl *M, dbl *v, dbl *r, int n, int m) MLP_HIDDEN
 
void MLP_MM2rows (dbl *c, type_pat *a, dbl *b, int Ni, int Nj, int Nk, int NaOffs, int NbOffs) MLP_HIDDEN
 
void MLP_Out (type_pat *rrin, dbl *rrout) MLP_HIDDEN
 
void MLP_Out2 (type_pat *rrin) MLP_HIDDEN
 
void MLP_Out_T (type_pat *rrin) MLP_HIDDEN
 
int MLP_PrCFun (char *filename) MLP_HIDDEN
 
int MLP_PrFFun (char *filename) MLP_HIDDEN
 
int MLP_PrintInputStat () MLP_HIDDEN
 
double MLP_Rand (dbl min, dbl max) MLP_HIDDEN
 
void MLP_ResLin () MLP_HIDDEN
 
int MLP_SetNet (int *nl, int *nn) MLP_HIDDEN
 
int MLP_StatInputs (int Nexamples, int Ninputs, type_pat **inputs, dbl *mean, dbl *sigma, dbl *minimum, dbl *maximum) MLP_HIDDEN
 
dbl MLP_Stochastic () MLP_HIDDEN
 
dbl MLP_Test (int ifile, int regul) MLP_HIDDEN
 
int MLP_Train (int *ipat, dbl *err) MLP_HIDDEN
 
int NormalizeInputs () MLP_HIDDEN
 
void PrintWeights () MLP_HIDDEN
 
int ReadPatterns (char *filename, int ifile, int *inet, int *ilearn, int *iexamples) MLP_HIDDEN
 
int SaveWeights (char *filename, int iepoch) MLP_HIDDEN
 
void SetDefaultFuncs () MLP_HIDDEN
 
void SetLambda (double Wmax) MLP_HIDDEN
 
int SetTransFunc (int layer, int neuron, int func) MLP_HIDDEN
 
int ShuffleExamples (int n, int *index) MLP_HIDDEN
 
void SteepestDir () MLP_HIDDEN
 
int StochStep () MLP_HIDDEN
 
int StochStepHyb () MLP_HIDDEN
 

Variables

struct net_ MLP_HIDDEN
 

Macro Definition Documentation

#define DIVERS   divers_

Definition at line 54 of file mlp_gen.h.

#define LEARN   learn_

Definition at line 36 of file mlp_gen.h.

Referenced by PhysicsTools::MLP::setLearn().

#define NET   net_

Definition at line 25 of file mlp_gen.h.

Referenced by PhysicsTools::MLP::eval().

#define PAT   pat_
#define STAT   stat_

Definition at line 60 of file mlp_gen.h.

Typedef Documentation

typedef double dbl

Definition at line 12 of file mlp_gen.h.

typedef double type_pat

Definition at line 13 of file mlp_gen.h.

Function Documentation

int AllocNetwork ( int  Nlayer,
int *  Neurons 
)

Definition at line 3449 of file mlp_gen.cc.

int AllocPatterns ( int  ifile,
int  npat,
int  nin,
int  nout,
int  iadd 
)

Definition at line 3077 of file mlp_gen.cc.

Referenced by PhysicsTools::MLP::init().

void AllocWeights ( )
void BFGSdir ( int  Nweights)

Definition at line 1340 of file mlp_gen.cc.

void CGDir ( dbl  beta)

Definition at line 1266 of file mlp_gen.cc.

int CountLexemes ( char *  string)

Definition at line 2585 of file mlp_gen.cc.

int DecreaseSearch ( dbl alpmin,
int *  Ntest,
dbl  Err0 
)

Definition at line 1616 of file mlp_gen.cc.

dbl DeDwNorm ( )

Definition at line 998 of file mlp_gen.cc.

dbl DeDwProd ( )

Definition at line 1020 of file mlp_gen.cc.

void DeDwSave ( )

Definition at line 1078 of file mlp_gen.cc.

void DeDwSaveZero ( )

Definition at line 1097 of file mlp_gen.cc.

void DeDwScale ( int  Nexamples)

Definition at line 1060 of file mlp_gen.cc.

int DeDwSum ( type_pat ans,
dbl out,
int  ipat 
)

Definition at line 1123 of file mlp_gen.cc.

void DeDwZero ( )

Definition at line 1041 of file mlp_gen.cc.

dbl DerivDir ( )

Definition at line 1288 of file mlp_gen.cc.

void EtaDecay ( )

Definition at line 2086 of file mlp_gen.cc.

int FixedStep ( dbl  alpha)

Definition at line 1704 of file mlp_gen.cc.

void FreeNetwork ( )

Definition at line 3531 of file mlp_gen.cc.

int FreePatterns ( int  ifile)

Definition at line 3232 of file mlp_gen.cc.

Referenced by PhysicsTools::MLP::clear().

void FreeWeights ( )
int GetBFGSH ( int  Nweights)

Definition at line 1418 of file mlp_gen.cc.

void GetGammaDelta ( )

Definition at line 1313 of file mlp_gen.cc.

void getLexemes ( char *  s,
char **  ss 
)

Definition at line 2615 of file mlp_gen.cc.

int GetNetStructure ( char *  s,
int *  Nlayer,
int *  Nneur 
)

Definition at line 3592 of file mlp_gen.cc.

void getnLexemes ( int  n,
char *  s,
char **  ss 
)

Definition at line 2601 of file mlp_gen.cc.

void InitBFGSH ( int  Nweights)

Definition at line 1388 of file mlp_gen.cc.

void InitWeights ( )

Definition at line 2147 of file mlp_gen.cc.

Referenced by PhysicsTools::MLP::MLP().

int LearnAlloc ( )

Definition at line 2685 of file mlp_gen.cc.

Referenced by PhysicsTools::MLP::MLP().

void LearnFree ( )

Definition at line 2640 of file mlp_gen.cc.

Referenced by PhysicsTools::MLP::~MLP().

int LineSearch ( dbl alpmin,
int *  Ntest,
dbl  Err0 
)

Definition at line 1478 of file mlp_gen.cc.

int LineSearchHyb ( dbl alpmin,
int *  Ntest 
)

Definition at line 1781 of file mlp_gen.cc.

int LoadWeights ( char *  filename,
int *  iepoch 
)

Definition at line 3022 of file mlp_gen.cc.

Referenced by PhysicsTools::MLP::load().

dbl MLP_Epoch ( int  iepoch,
dbl alpmin,
int *  ntest 
)

Definition at line 706 of file mlp_gen.cc.

Referenced by PhysicsTools::MLP::train().

void MLP_Line ( dbl ***  w0,
dbl  alpha 
)

Definition at line 1757 of file mlp_gen.cc.

void MLP_LineHyb ( dbl ***  w0,
dbl  alpha 
)

Definition at line 1923 of file mlp_gen.cc.

void MLP_MatrixVector ( dbl M,
type_pat v,
dbl r,
int  n,
int  m 
)

Definition at line 3748 of file mlp_gen.cc.

void MLP_MatrixVectorBias ( dbl M,
dbl v,
dbl r,
int  n,
int  m 
)

Definition at line 3682 of file mlp_gen.cc.

void MLP_MM2rows ( dbl c,
type_pat a,
dbl b,
int  Ni,
int  Nj,
int  Nk,
int  NaOffs,
int  NbOffs 
)

Definition at line 3817 of file mlp_gen.cc.

void MLP_Out ( type_pat rrin,
dbl rrout 
)

Definition at line 62 of file mlp_gen.cc.

void MLP_Out2 ( type_pat rrin)

Definition at line 184 of file mlp_gen.cc.

void MLP_Out_T ( type_pat rrin)

Definition at line 113 of file mlp_gen.cc.

Referenced by PhysicsTools::MLP::eval().

int MLP_PrCFun ( char *  filename)

Definition at line 2878 of file mlp_gen.cc.

int MLP_PrFFun ( char *  filename)

Definition at line 2769 of file mlp_gen.cc.

int MLP_PrintInputStat ( )

Definition at line 3332 of file mlp_gen.cc.

double MLP_Rand ( dbl  min,
dbl  max 
)

Definition at line 2131 of file mlp_gen.cc.

void MLP_ResLin ( )

Definition at line 1971 of file mlp_gen.cc.

int MLP_SetNet ( int *  nl,
int *  nn 
)

Definition at line 3639 of file mlp_gen.cc.

Referenced by PhysicsTools::MLP::MLP().

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.

dbl MLP_Stochastic ( )

Definition at line 518 of file mlp_gen.cc.

dbl MLP_Test ( int  ifile,
int  regul 
)

Definition at line 446 of file mlp_gen.cc.

int MLP_Train ( int *  ipat,
dbl err 
)

Definition at line 895 of file mlp_gen.cc.

int NormalizeInputs ( )

Definition at line 3378 of file mlp_gen.cc.

void PrintWeights ( )

Definition at line 2168 of file mlp_gen.cc.

int ReadPatterns ( char *  filename,
int  ifile,
int *  inet,
int *  ilearn,
int *  iexamples 
)

Definition at line 2229 of file mlp_gen.cc.

int SaveWeights ( char *  filename,
int  iepoch 
)

Definition at line 2972 of file mlp_gen.cc.

Referenced by PhysicsTools::MLP::save().

void SetDefaultFuncs ( )

Definition at line 1223 of file mlp_gen.cc.

void SetLambda ( double  Wmax)

Definition at line 1949 of file mlp_gen.cc.

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.

void SteepestDir ( )

Definition at line 1244 of file mlp_gen.cc.

int StochStep ( )

Definition at line 965 of file mlp_gen.cc.

int StochStepHyb ( )

Definition at line 926 of file mlp_gen.cc.

Variable Documentation

dbl** Hessian MLP_HIDDEN

Definition at line 62 of file mlp_gen.h.