dibgerge / ml-coursera-python-assignments

Python assignments for the machine learning class by andrew ng on coursera with complete submission for grading capability and re-written instructions.
5.44k stars 2.15k forks source link

TypeError: only size-1 arrays can be converted to Python scalars #96

Closed nikhilvashisht closed 2 years ago

nikhilvashisht commented 2 years ago

I am currently on module 2.2 (Gradient descent) of exercise 1, and I can't run the computeCost function.

When I run this code, I get this error.

How can I resolve this?