private static DataSet loadDataSet() { DataSet irisDataSet = DataSet.createFromFile(inputFileName, 4, 3, ",", false); irisDataSet.shuffle(); return(irisDataSet); }
public static void Main(string[] args) { string inputFileName = "/iris_data.txt"; DataSet irisDataSet = DataSet.createFromFile(inputFileName, 4, 3, ",", false); BackPropagation learningRule = createLearningRule(); NeuralNetwork neuralNet = (new MultilayerPerceptronOptimazer <>()).withLearningRule(learningRule).createOptimalModel(irisDataSet); neuralNet.learn(irisDataSet); Evaluation.runFullEvaluation(neuralNet, irisDataSet); }