Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
coding neural network
#2
1. W1 is the weight matrix and is the shape going between input and first hidden layer
2. Use np.shape(w1)
3. Input layer will be the number of features. For example, this is one of my model input layers, left it flexible for me so if I change data structure I don't have to chase down and change the input layer.
layers.Dense(64, activation='relu', input_shape=[len(train_dataset.keys())])
4. You can create your own repository. Go to GitHub and sign up. Using them is not intuitive, but pretty easy once you get used to it. I suggest "A Practical Guid to Git and Github for Windows Users from Amazon.
5. The function initialize_parameters_test_case() (look in your code) returns 3 values.
6. Same as #2
7. print type of logprobs to see what it is. That may help.
8. layer_sizes by itself should print the layer_sizes. predictions=np.round(A2) will round A2
9. Yes
10. https://www.geeksforgeeks.org/enumerate-in-python/
Reply


Messages In This Thread
coding neural network - by programmer19890620 - Feb-20-2020, 12:04 PM
RE: coding neural network - by jefsummers - Feb-20-2020, 04:56 PM
RE: coding neural network - by programmer19890620 - Feb-25-2020, 05:06 PM
RE: coding neural network - by jefsummers - Feb-25-2020, 09:06 PM
RE: coding neural network - by programmer19890620 - Feb-27-2020, 04:26 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Neural network and data analysis from clients survey result pthon3 2 1,926 Mar-17-2022, 02:21 AM
Last Post: jefsummers
  Multilayer Perceptron Neural Network erdemath 3 2,362 Aug-09-2021, 11:07 PM
Last Post: jefsummers
  Neural Network importance weights / coefficients jkaustin 1 2,097 Nov-10-2020, 07:44 PM
Last Post: jefsummers
  Get error message in a GAN neural network tutorial jdude50 0 1,693 Oct-22-2020, 11:11 PM
Last Post: jdude50
  Explain Me Neural Network Ai's Harshil 2 2,036 Oct-22-2020, 04:50 AM
Last Post: Harshil
  construction of Neural Network for solving Differential equations arshad 0 1,633 Jun-04-2020, 09:20 AM
Last Post: arshad
  Neural Network mensagem error Dalpi 2 2,898 May-20-2020, 04:03 PM
Last Post: Dalpi
  Why does this simple neural network not learn? PythonIsGreat 1 2,129 Aug-30-2019, 05:49 PM
Last Post: ThomasL
  First neural network: Problem with the weight factos 11112294 0 2,185 Jan-12-2019, 09:11 PM
Last Post: 11112294
  Neural network nesrine 0 2,651 Dec-11-2018, 03:48 PM
Last Post: nesrine

Forum Jump:

User Panel Messages

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