public class TestADALINE extends TestCase {
public void testAdalineNet() throws Throwable
{
ADALINEPattern pattern = new ADALINEPattern();
pattern.setInputNeurons(2);
pattern.setOutputNeurons(1);
BasicNetwork network = (BasicNetwork)pattern.generate();
// train it
MLDataSet training = new BasicMLDataSet(XOR.XOR_INPUT,XOR.XOR_IDEAL);
MLTrain train = new TrainAdaline(network,training,0.01);
NetworkUtil.testTraining(training,train,0.01);