C5W1A2 Wrong expected output Model Function

Please help me with this

{moderator edit - solution code removed}

It might help to see more of the output including the full list of names your model produces. One of the common errors on this function is to just use the alphabetical corpus of names that they give you as input, instead of using the “scrambled” version that they create for you in the template code. But it looks like you are using examples, which is the scrambled version. Well, unless you wrote more code to change the meaning of examples.

Oh, sorry, I didn’t look at your code closely enough the first time: it is a mistake to call rnn_forward there. Please read the comment in the code at that point and consider the other functions that you have created above.