I write my codes correctly in 2 cells but I have this error and I cant change another cells
why this happened?
Hi @Mohamad_Ehsan_Kashir
Welcome to the community!
Make sure that you all tests before gradient_descent() function, Also the gradient_descent is an function, so you shouldn’t divide the implement code into 2 cells, Also make sure from your implementation in the function gradient_descent
Cheers,
Abdelrahman
Most likely there is an error in your compute_cost() function. This is because the assert is being thrown when the gradient_descent() function tries to print some values from J_history.