Course 1 week 4 assignment 2 - getting wrong output for L Layer training

For the function L_layer_model I got all test cases passed for cost after iterations but getting wrong output for training the model. I am attaching screenshots of the code and results. Please help . TIA

Hey @Sarath_Krishna sharing solution code publicly is against the code of honour. Kindly refrain from doing so. I understand, in some cases to help someone out, you have to look at the solution, so for that scenario please wait for a mentor or a staff mentor to reach out to you first, asking you to DM them.

Run your notebook again after restarting. If you still get similar results, let me know.