176177178179180181182183184185186
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(); } }
138139140141142143144145146147148
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();