home *** CD-ROM | disk | FTP | other *** search
- /* Read line 1: (lines to read from run file) */
- fscanf(fpRun, "%d", &nRuns);
-
- /* Beginning of work loop */
- for (r = 0; r < nRuns; r++ )
- {
- /* read and parse run specification line; */
- fscanf(fpRun, "%s %s %s %s %s %d %d %d %d %d %f %f",
- szResults, /* output results file */
- szError, /* error output file */
- szPattern, /* pattern input file */
- szWeights, /* initial weights file */
- szWeightsOut, /* final weights out file */
- &nPatterns, /* # patterns to learn */
- &nIterations, /* # its through date */
- &nInputNodes, /* # input nodes */
- &nHiddenNodes, /* # hidden nodes */
- &nOutputNodes, /* # output nodes */
- &eta, /* learning rate */
- &alpha); /* momentum factor */
-
- ...
-