Package aima.core.learning.neural

Examples of aima.core.learning.neural.Perceptron


      Numerizer numerizer = new IrisDataSetNumerizer();
      NNDataSet innds = new IrisNNDataSet();

      innds.createExamplesFromDataSet(irisDataSet, numerizer);

      Perceptron perc = new Perceptron(3, 4);

      perc.trainOn(innds, 10);

      innds.refreshDataset();
      int[] result = perc.testOnDataSet(innds);
      System.out.println(result[0] + " right, " + result[1] + " wrong");
    } catch (Exception e) {
      e.printStackTrace();
    }
View Full Code Here


    Numerizer numerizer = new IrisDataSetNumerizer();
    NNDataSet innds = new IrisNNDataSet();

    innds.createExamplesFromDataSet(irisDataSet, numerizer);

    Perceptron perc = new Perceptron(3, 4);

    perc.trainOn(innds, 10);

    innds.refreshDataset();
    perc.testOnDataSet(innds);
  }
View Full Code Here

TOP

Related Classes of aima.core.learning.neural.Perceptron

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.