When creating a post, please add:
- Week # must be added in the tags option of the post.
- Link to the classroom item you are referring to:
- Description (include relevant info but please do not post solution code or your entire notebook)
Hi, I’ve been stuck on this Test for a couple of weeks now.
I’m receiving the Error below and I can’t seem to figure where I got it all wrong. Please assist.
<class ‘NoneType’>
TypeError Traceback (most recent call last)
in
5 cost = compute_cost(x_train, y_train, initial_w, initial_b)
6 print(type(cost))
----> 7 print(f’Cost at initial w: {cost:.3f}')
8
9 # Public tests
TypeError: unsupported format string passed to NoneType.format
{mentor edit: code removed}