示例#1
0
        public void execute(out double[] learningRate, out double[] errorRate, out double[][] learningTable, out double[][] testingTable)
        {
            DataLoader loader = new DataLoader(fileName);

            Data[] data = loader.loadDataFromFile();
            inputs  = loader.inputs;
            outputs = loader.outputs;

            Initialiser init    = new Initialiser(layers, inputs, 0.75, outputs);
            Network     network = init.createMultiHiddenLayerNetwork();

            Learning learning = new Learning(learningParameter, data, network, tolerance);

            learning.folderPath = folderPath;
            learning.executeLearningCycle(learningSuccessRate);

            learningRate  = learning.learningRate.ToArray();
            errorRate     = learning.globalErrorRate.ToArray();
            learningTable = learning.learningTable;
            testingTable  = learning.testingTable;
        }