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")))
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;
108 extern
void BFGSdir(
int Nweights) MLP_HIDDEN;
109 extern
void InitBFGSH(
int Nweights) MLP_HIDDEN;
110 extern
int GetBFGSH(
int Nweights) 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;
142 extern
int MLP_PrFFun(
char *filename) MLP_HIDDEN;
143 extern
int MLP_PrCFun(
char *filename) MLP_HIDDEN;
148 extern
int AllocNetwork(
int Nlayer,
int *Neurons) MLP_HIDDEN;
150 extern
int GetNetStructure(
char *s,
int *Nlayer,
int *Nneur) MLP_HIDDEN;
151 extern
int MLP_SetNet(
int *nl,
int *nn) MLP_HIDDEN;
154 int Ni,
int Nj,
int Nk,
int NaOffs,
int NbOffs) MLP_HIDDEN;
164 #endif // __private_mlp_gen_h
dbl MLP_Epoch(int iepoch, dbl *alpmin, int *Ntest)
void getnLexemes(int n, char *s, char **ss)
int ReadPatterns(char *filename, int ifile, int *inet, int *ilearn, int *iexamples)
int DecreaseSearch(dbl *alpmin, int *Ntest, dbl Err0)
int SaveWeights(char *filename, int iepoch)
void MLP_Out(type_pat *rrin, dbl *rrout)
void AllocWeights() MLP_HIDDEN
int MLP_SetNet(int *nl, int *nn)
int MLP_PrCFun(char *filename)
int MLP_StatInputs(int Nexamples, int Ninputs, type_pat **inputs, dbl *mean, dbl *sigma, dbl *minimum, dbl *maximum)
void SetLambda(double Wmax)
int GetBFGSH(int Nweights)
int GetNetStructure(char *s, int *Nlayer, int *Nneur)
void MLP_Out_T(type_pat *rrin)
int MLP_Train(int *ipat, dbl *err)
int ShuffleExamples(int n, int *index)
double MLP_Rand(dbl mini, dbl maxi)
int DeDwSum(type_pat *ans, dbl *out, int ipat)
int CountLexemes(char *s)
struct net_ net_ MLP_HIDDEN
int LoadWeights(char *filename, int *iepoch)
void MLP_LineHyb(dbl ***w0, dbl alpha)
int AllocPatterns(int ifile, int npat, int nin, int nout, int iadd)
void FreeWeights() MLP_HIDDEN
int SetTransFunc(int layer, int neuron, int func)
void InitBFGSH(int Nweights)
void MLP_MM2rows(dbl *c, type_pat *a, dbl *b, int Ni, int Nj, int Nk, int NaOffs, int NbOffs)
void MLP_MatrixVector(dbl *M, type_pat *v, dbl *r, int n, int m)
void DeDwScale(int Nexamples)
void MLP_Line(dbl ***w0, dbl alpha)
void MLP_MatrixVectorBias(dbl *M, dbl *v, dbl *r, int n, int m)
void getLexemes(char *s, char **ss)
int LineSearch(dbl *alpmin, int *Ntest, dbl Err0)
void BFGSdir(int Nweights)
void MLP_Out2(type_pat *rrin)
int FreePatterns(int ifile)
dbl MLP_Test(int ifile, int regul)
int MLP_PrFFun(char *filename)
int AllocNetwork(int Nlayer, int *Neurons)
int LineSearchHyb(dbl *alpmin, int *Ntest)