Examples of testOnDataSet()


Examples of aima.core.learning.neural.FeedForwardNeuralNetwork.testOnDataSet()

      ffnn.setTrainingScheme(new BackPropLearning(0.1, 0.9));

      ffnn.trainOn(innds, 10);

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

Examples of aima.core.learning.neural.FeedForwardNeuralNetwork.testOnDataSet()

    ffnn.setTrainingScheme(new BackPropLearning(0.1, 0.9));

    ffnn.trainOn(innds, 10);

    innds.refreshDataset();
    ffnn.testOnDataSet(innds);
  }

  @Test
  public void testPerceptron() throws Exception {
    DataSet irisDataSet = DataSetFactory.getIrisDataSet();
View Full Code Here

Examples of aima.core.learning.neural.Perceptron.testOnDataSet()

      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

Examples of aima.core.learning.neural.Perceptron.testOnDataSet()

    Perceptron perc = new Perceptron(3, 4);

    perc.trainOn(innds, 10);

    innds.refreshDataset();
    perc.testOnDataSet(innds);
  }
}
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.