Open SpadeSeveren opened 6 years ago
Guess your trainingSet data contains an array ? Try to start with the XOR example and gradually change it to your system to find the bug.
this example should solve your problem: var myNet = new Architect.Perceptron(10, 7, 1); trainer = new Trainer(myNet); trainer.train(trainingSet, trainingOptions);//without "myNet."
I'm trying to get started, but I can't seem to train. I have
var myNet = new Architect.Perceptron(10, 7, 1);
andmyNet.trainer.train(trainingSet, trainingOptions);
, and the correct trainingSet and trainingOptions, but when I try to run it, I getTypeError: Cannot read property 'train' of undefined
. I tried addingvar trainer = new Trainer(myNet);
to the beginning, but the same message. Please help.