test.runTest();
}
public void runTest()
{
Art2mAlgorithm algorithm = new Art2mAlgorithm();
algorithm.setP(0.6);
algorithm.setLearningData(createLearningData());
algorithm.startLearning();
System.out.println("");
for (int i = 0; i < 30; ++i)
{
for (int j = 0; j < 30; ++j)
{
algorithm.step(DataUtils.asList(i, j));
System.out.print(" " +
algorithm.getNetwork().getLayers().getLast().getMinActivationNeuronIndex());
}
System.out.println();
}
//System.out.println(algorithm.feedforwardStep(DataUtils.asList(15, 29)));