I am trying to set up a neural network in Python (using PyBrain) for prediction purposes. I already set one up with a small, mock dataset, but when expanding this network to work for larger datasets, I run into an issue regarding an AssertionError. Here is my code:
ds = ClassificationDataSet(231, 1)
for x in range(inputData[0].size):
ds.addSample(inputData[:,x], inputAnswers[x])
network = buildNetwork(191, 128, 1, bias=True, hiddenclass=TanhLayer)
network.randomize()
trainer = BackpropTrainer(network)
trainer.setData(ds)
and here is the error message I receive:
File "ANN_rawData.py", line 45, in <module>
trainer.setData(ds)
File "[path]", line 22, in setData
assert dataset.indim == self.module.indim
AssertionError
What does this error mean, and how could I fix it? Thank you in advance!