TypeError Traceback (most recent call last)
in
5 initial_b = 0.
6 cost = compute_cost(X_train, y_train, initial_w, initial_b)
----> 7 print(‘Cost at initial w (zeros): {:.3f}’.format(cost))
TypeError: unsupported format string passed to numpy.ndarray.format
Resulting in this error when grading my assignment:
Cell #UNQ_C2. Can’t compile the student’s code. Error: ValueError(‘The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()’)