예제 #1
0
        private static DataSet loadDataSet()
        {
            DataSet irisDataSet = DataSet.createFromFile(inputFileName, 4, 3, ",", false);

            irisDataSet.shuffle();
            return(irisDataSet);
        }
예제 #2
0
        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);
        }