Week 1 Assignment 1 propelm with y_pred value

Hi

I got an error with y_pred value. As you can see below the value is shifted by 1 index in comparison to the expected output that is given under the cell

my output
y_pred[1][3] =
[0.96251083 0.79560373 0.86224861 0.11118257]

expected output
y_pred[1][3] =
 [ 0.79560373  0.86224861  0.11118257  0.81515947]

I found where I made a mistake

I used a_prev mistakenly instead of a_next

@Alsaka
I am glad you fixed the problem.

Please edit your messages and remove the code. Posting your code is not allowed by the course
Honor Code.

2 Likes