Quantcast
Channel: Data Science, Analytics and Big Data discussions - Latest topics
Viewing all articles
Browse latest Browse all 4448

Error in neural network with one hidden layer

$
0
0

@9954953559 wrote:

1 hidden layer and the nodes (n_x,n_h,n_y) = [10,16,1]

i have initialized b2 = np.zeros ((1,1)) ,

and in backward propagation db2 = 1/m*np.sum(dz2,axis =1 )

in upadate parameters b2 = b2-learning_rate*db2

so when i run these codes error shown: Data must be 1-dimensional

error is at b2 update parameter

how to solve it??
n_x = input feature
n_y = output
n_h = hidden laye nodes

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4448