Jul-11-2018, 06:52 AM
your
Note that error does not match your code - on line 32 in the code in post #1 you have it right - you expect 3 variables:
My guess - you run different code than what you think.
NeuralNetwork.think()
method returns 3-element tuple (line#64) - return output_from_layer1, output_from_layer2, output_from_layer3
. Yet error claims when you unpack the result on line 32 you expect just 2- output_from_layer_1, output_from_layer_3 = self.think(training_set_inputs)
Note that error does not match your code - on line 32 in the code in post #1 you have it right - you expect 3 variables:
output_from_layer_1, output_from_layer_2, output_from_layer_3 = self.think(training_set_inputs)
.My guess - you run different code than what you think.
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs