diff options
author | Matt Turner <mattst88@gmail.com> | 2008-11-18 02:16:49 +0000 |
---|---|---|
committer | Matt Turner <mattst88@gmail.com> | 2008-11-18 02:16:49 +0000 |
commit | 8a4d023a933a245fd32cb585ccd800578308e922 (patch) | |
tree | a8f67832c00a896af10bf607de41622ed4a55d72 | |
parent | 06d8002d0dc08bcb44858a087d2b30a4b6793dde (diff) |
global->local variable
git-svn-id: svn://mattst88.com/svn/cleanbench/trunk@88 0d43b9a7-5ab2-4d7b-af9d-f64450cef757
-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; |