1 #ifndef __private_mlp_gen_h 2 #define __private_mlp_gen_h 4 #if defined(__GNUC__) && (__GNUC__ > 3 || __GNUC__ == 3 && __GNUC_MINOR__ >= 4) 5 # define MLP_HIDDEN __attribute__((visibility("hidden"))) 40 int Npat[2], Iponde, Nin, Nout;
41 type_pat ***
Rin, ***Rans, **Pond;
54 #define DIVERS divers_ 97 extern
void DeDwScale(
int Nexamples) MLP_HIDDEN;
99 extern
int DeDwSum(type_pat *ans, dbl *
out,
int ipat) MLP_HIDDEN;
112 extern
int LineSearch(dbl *alpmin,
int *Ntest, dbl Err0) MLP_HIDDEN;
113 extern
int DecreaseSearch(dbl *alpmin,
int *Ntest, dbl Err0) MLP_HIDDEN;
116 extern
int LineSearchHyb(dbl *alpmin,
int *Ntest) MLP_HIDDEN;
127 dbl *
mean, dbl *
sigma, dbl *minimum, dbl *maximum) MLP_HIDDEN;
131 extern
int SaveWeights(
char *filename,
int iepoch) MLP_HIDDEN;
133 extern
void SetLambda(
double Wmax) MLP_HIDDEN;
136 int *inet,
int *ilearn,
int *iexamples) MLP_HIDDEN;
138 extern
void getnLexemes(
int n,
char *
s,
char **ss) MLP_HIDDEN;
139 extern
void getLexemes(
char *s,
char **ss) MLP_HIDDEN;
142 extern
int MLP_PrFFun(
char *filename) MLP_HIDDEN;
143 extern
int MLP_PrCFun(
char *filename) MLP_HIDDEN;
154 int Ni,
int Nj,
int Nk,
int NaOffs,
int NbOffs) MLP_HIDDEN;
164 #endif // __private_mlp_gen_h
int FreePatterns(int ifile) MLP_HIDDEN
int DeDwSum(type_pat *ans, dbl *out, int ipat) MLP_HIDDEN
int CountLexemes(char *string) MLP_HIDDEN
void MLP_Out_T(type_pat *rrin) MLP_HIDDEN
void SetLambda(double Wmax) MLP_HIDDEN
int SetTransFunc(int layer, int neuron, int func) MLP_HIDDEN
int MLP_PrintInputStat() MLP_HIDDEN
int FixedStep(dbl alpha) MLP_HIDDEN
dbl DeDwProd() MLP_HIDDEN
int ReadPatterns(char *filename, int ifile, int *inet, int *ilearn, int *iexamples) MLP_HIDDEN
void MLP_Line(dbl ***w0, dbl alpha) MLP_HIDDEN
void SteepestDir() MLP_HIDDEN
void DeDwSave() MLP_HIDDEN
int MLP_Train(int *ipat, dbl *err) MLP_HIDDEN
void DeDwScale(int Nexamples) MLP_HIDDEN
int GetNetStructure(char *s, int *Nlayer, int *Nneur) MLP_HIDDEN
int StochStepHyb() MLP_HIDDEN
dbl MLP_Test(int ifile, int regul) MLP_HIDDEN
void AllocWeights() MLP_HIDDEN
int MLP_SetNet(int *nl, int *nn) MLP_HIDDEN
int LineSearchHyb(dbl *alpmin, int *Ntest) MLP_HIDDEN
void FreeNetwork() MLP_HIDDEN
void MLP_ResLin() MLP_HIDDEN
int DecreaseSearch(dbl *alpmin, int *Ntest, dbl Err0) MLP_HIDDEN
dbl DerivDir() MLP_HIDDEN
void InitWeights() MLP_HIDDEN
void EtaDecay() MLP_HIDDEN
void CGDir(dbl beta) MLP_HIDDEN
void SetDefaultFuncs() MLP_HIDDEN
void MLP_Out2(type_pat *rrin) 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 Decay(List_t &output, Particle &p, ParticleAllocator &allocator, DatabasePDG *database)
void MLP_Out(type_pat *rrin, dbl *rrout) MLP_HIDDEN
void DeDwZero() MLP_HIDDEN
int LoadWeights(char *filename, int *iepoch) MLP_HIDDEN
int StochStep() MLP_HIDDEN
void getnLexemes(int n, char *s, char **ss) MLP_HIDDEN
int SaveWeights(char *filename, int iepoch) MLP_HIDDEN
void FreeWeights() MLP_HIDDEN
int AllocPatterns(int ifile, int npat, int nin, int nout, int iadd) MLP_HIDDEN
int MLP_PrFFun(char *filename) MLP_HIDDEN
int ShuffleExamples(int n, int *index) MLP_HIDDEN
int AllocNetwork(int Nlayer, int *Neurons) MLP_HIDDEN
void MLP_MatrixVector(dbl *M, type_pat *v, dbl *r, int n, int m) MLP_HIDDEN
void getLexemes(char *s, char **ss) MLP_HIDDEN
void InitBFGSH(int Nweights) MLP_HIDDEN
void PrintWeights() MLP_HIDDEN
void LearnFree() MLP_HIDDEN
void DeDwSaveZero() MLP_HIDDEN
dbl MLP_Epoch(int iepoch, dbl *alpmin, int *ntest) MLP_HIDDEN
void MLP_LineHyb(dbl ***w0, dbl alpha) MLP_HIDDEN
void GetGammaDelta() MLP_HIDDEN
dbl MLP_Stochastic() MLP_HIDDEN
void MLP_MatrixVectorBias(dbl *M, dbl *v, dbl *r, int n, int m) MLP_HIDDEN
int LearnAlloc() MLP_HIDDEN
int LineSearch(dbl *alpmin, int *Ntest, dbl Err0) MLP_HIDDEN
void BFGSdir(int Nweights) MLP_HIDDEN
double MLP_Rand(dbl min, dbl max) MLP_HIDDEN
int GetBFGSH(int Nweights) MLP_HIDDEN
int MLP_PrCFun(char *filename) MLP_HIDDEN
int NormalizeInputs() MLP_HIDDEN
int MLP_StatInputs(int Nexamples, int Ninputs, type_pat **inputs, dbl *mean, dbl *sigma, dbl *minimum, dbl *maximum) MLP_HIDDEN
dbl DeDwNorm() MLP_HIDDEN