Week 2 - programming assignment problem - reshaping

Hi have one issue with week 2 assignment, Anyone know how to fix this?

{moderator edit - solution code removed}

There’s an obvious bug in your code: what variable do you use to store the return value of the dictionary with the parameter values that is returned by optimize? Then what variable do you use to actually extract the returned w and b values? That is why the shapes don’t match.

Also note that we aren’t supposed to just post solution code in a public way. It’s fine to show the exception trace that you get, even if that reveals a little source code. If we can’t figure out how to help without actually seeing your code, there are non-public ways to do that.

1 Like

Thank you, obvious mistake… Everything works fine now.