For the supervised learning course, week 1, in the last programming lab for logistic regression, in the last unit test below, why does the unit test expect 3 values for the weights?
Compute and display cost and gradient with non-zero w and b
test_w = np.array([ 0.2, -0.5])
test_b = -24
dj_db, dj_dw = compute_gradient(X_train, y_train, test_w, test_b)
print(‘dj_db at test w and b:’, dj_db)
print(‘dj_dw at test w and b:’, dj_dw.tolist())
UNIT TESTS
compute_gradient_test(compute_gradient)