Python Forum
Neural Network Enlargement
Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Neural Network Enlargement
#4
your 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

Reply


Messages In This Thread
Neural Network Enlargement - by philphed - Jul-10-2018, 04:46 PM
RE: Neural Network Enlargement - by buran - Jul-10-2018, 05:13 PM
RE: Neural Network Enlargement - by philphed - Jul-11-2018, 06:44 AM
RE: Neural Network Enlargement - by buran - Jul-11-2018, 06:52 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Neural network and data analysis from clients survey result pthon3 2 1,988 Mar-17-2022, 02:21 AM
Last Post: jefsummers
  Multilayer Perceptron Neural Network erdemath 3 2,439 Aug-09-2021, 11:07 PM
Last Post: jefsummers
  Neural Network importance weights / coefficients jkaustin 1 2,153 Nov-10-2020, 07:44 PM
Last Post: jefsummers
  Get error message in a GAN neural network tutorial jdude50 0 1,742 Oct-22-2020, 11:11 PM
Last Post: jdude50
  Explain Me Neural Network Ai's Harshil 2 2,114 Oct-22-2020, 04:50 AM
Last Post: Harshil
  construction of Neural Network for solving Differential equations arshad 0 1,681 Jun-04-2020, 09:20 AM
Last Post: arshad
  Neural Network mensagem error Dalpi 2 2,978 May-20-2020, 04:03 PM
Last Post: Dalpi
  coding neural network programmer19890620 4 3,580 Feb-27-2020, 04:26 AM
Last Post: programmer19890620
  Why does this simple neural network not learn? PythonIsGreat 1 2,169 Aug-30-2019, 05:49 PM
Last Post: ThomasL
  First neural network: Problem with the weight factos 11112294 0 2,222 Jan-12-2019, 09:11 PM
Last Post: 11112294

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020