So I have a ClassificationDataSet in PyBrain which I have trained with the appropriate data. Namely, the input is the following:
trainSet.addSample([0,0,0,0],[1])
trainSet.addSample([0,0,0,1],[0])
trainSet.addSample([0,0,1,0],[0])
trainSet.addSample([0,0,1,1],[1])
trainSet.addSample([0,1,0,0],[0])
trainSet.addSample([0,1,0,1],[1])
trainSet.addSample([0,1,1,0],[1])
trainSet.addSample([0,1,1,1],[0])
trainSet.addSample([1,0,0,0],[0])
trainSet.addSample([1,0,0,1],[1])
The pattern is simple. If there is an even number of 1's then the output should be 1, otherwise it is 0. I want to run the following inputs:
[1,0,0,1],[1]
[1,1,0,1],[0]
[1,0,1,1],[0]
[1,0,1,0],[1]
And see whether the neural network will recognise the pattern. As said previously, I've already trained the network. How do I validate it against the inputs above?
Thanks for your time!