void AnalyzeMaxMin() { // Find max-min value for each column analyzer = new MaxMinAnalyzer(Parameter.InputSize); double[] input = new double[Parameter.InputSize]; DataSetReader reader = new DataSetReader(Parameter.TrainingFile, Parameter.InputSize, Parameter.TargetSize); // Analyze training file. while (reader.Read(input, null)) { for (int i = 0; i < Parameter.InputSize; i++) { analyzer.AnalyzeValue(i, input[i]); } } // Analyze testing file. reader = new DataSetReader(Parameter.TestingFile, Parameter.InputSize, Parameter.TargetSize); while (reader.Read(input, null)) { for (int i = 0; i < Parameter.InputSize; i++) { analyzer.AnalyzeValue(i, input[i]); } } }
void AnalyzeMaxMin() { // Find max-min value for each column analyzer = new MaxMinAnalyzer(Parameter.InputSize); double[] input = new double[Parameter.InputSize]; DataSetReader reader = null; if (File.Exists(Parameter.TrainingFile)) { reader = new DataSetReader(Parameter.TrainingFile, Parameter.InputSize, Parameter.TargetSize); } else if (File.Exists(Parameter.TestingFile)) { reader = new DataSetReader(Parameter.TestingFile, parameter.InputSize, Parameter.TargetSize); } if (reader == null) { throw new ArgumentException("Process must have a trainging file or testing file."); } // Analyze training file. while (reader.Read(input, null)) { for (int i = 0; i < Parameter.InputSize; i++) { analyzer.AnalyzeValue(i, input[i]); } } // Analyze testing file. reader = new DataSetReader(Parameter.TestingFile, Parameter.InputSize, Parameter.TargetSize); while (reader.Read(input, null)) { for (int i = 0; i < Parameter.InputSize; i++) { analyzer.AnalyzeValue(i, input[i]); } } }
void AnalyzeMaxMin() { // Find max-min value for each column analyzer = new MaxMinAnalyzer(Parameter.InputSize); double[] input = new double[Parameter.InputSize]; DataSetReader reader = null; if (File.Exists(Parameter.TrainingFile)) { reader = new DataSetReader(Parameter.TrainingFile, Parameter.InputSize, Parameter.TargetSize); } else if (File.Exists(Parameter.TestingFile)) { reader = new DataSetReader(Parameter.TestingFile, parameter.InputSize, Parameter.TargetSize); } if (reader == null) throw new ArgumentException("Process must have a trainging file or testing file."); // Analyze training file. while (reader.Read(input, null)) { for (int i = 0; i < Parameter.InputSize; i++) analyzer.AnalyzeValue(i, input[i]); } // Analyze testing file. reader = new DataSetReader(Parameter.TestingFile, Parameter.InputSize, Parameter.TargetSize); while (reader.Read(input, null)) { for (int i = 0; i < Parameter.InputSize; i++) analyzer.AnalyzeValue(i, input[i]); } }
void AnalyzeMaxMin() { // Find max-min value for each column analyzer = new MaxMinAnalyzer(Parameter.InputSize); double[] input = new double[Parameter.InputSize]; DataSetReader reader = new DataSetReader(Parameter.TrainingFile, Parameter.InputSize, Parameter.TargetSize); // Analyze training file. while (reader.Read(input, null)) { for (int i = 0; i < Parameter.InputSize; i++) analyzer.AnalyzeValue(i, input[i]); } // Analyze testing file. reader = new DataSetReader(Parameter.TestingFile, Parameter.InputSize, Parameter.TargetSize); while (reader.Read(input, null)) { for (int i = 0; i < Parameter.InputSize; i++) analyzer.AnalyzeValue(i, input[i]); } }