From 8a4d023a933a245fd32cb585ccd800578308e922 Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Tue, 18 Nov 2008 02:16:49 +0000 Subject: global->local variable git-svn-id: svn://mattst88.com/svn/cleanbench/trunk@88 0d43b9a7-5ab2-4d7b-af9d-f64450cef757 --- neural.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/neural.c b/neural.c index 2379056..1c6deb3 100644 --- a/neural.c +++ b/neural.c @@ -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; -- cgit v1.2.3