I have tried many methods for this question. It seems that in # GRADED FUNCTION: gradient_check_n, the gradients parameter is passed as a nested dictionary. I cannot find an easy way to convert it to a nested array that matches gradapprox.
Hi, I already found the problem. I didn’t notice there is a function that is already implemented and then I sort it out. Thank you for your help anyway.