C2_W1_Lab01_Neurons_and_Layer Different Values between Regression Model 1 and Layer Output

Did anyone else have this issue? The lab notes state,“Let’s compare equation (1) to the layer output.
" They produce the same values! Now, we can use our linear layer to make predictions on our training data.”

The values are clearly different.I restarted the kernel to be sure I didn’t change something, same issue. See screenshot:

Hello @Ebuwa_Evbuoma-Fike, welcome to our community!

The variable a1 has the “layer output” whereas alin has the “equation 1 output”. Since they are both [[300.]], the values are the same. We are comparing the two outputs in your cell #9.


1 Like

The two values it’s referring to are these:

They both have the value 300.

1 Like