diff options
-rw-r--r-- | neural.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -58,12 +58,6 @@ #define ALPHA 0.09 /* momentum term constant */ #define STOP 0.1 /* when worst_error less than STOP, training is done */ -/* -** The Neural Net test requires an input data file. -** The name is specified here. -*/ -const char *inpath="NNET.DAT"; - double mid_wts[MID_SIZE][IN_SIZE]; /* middle layer weights */ double out_wts[OUT_SIZE][MID_SIZE]; /* output layer weights */ double mid_out[MID_SIZE]; /* middle layer output */ @@ -699,6 +693,12 @@ return; **/ static int read_data_file() { +/* +** The Neural Net test requires an input data file. +** The name is specified here. +*/ +const char *inpath="NNET.DAT"; + FILE *infile; int xinsize,yinsize,youtsize; |