Hi all!

In Supervised Machine Learning: Regression and Classification, in the week-3-practice-lab-logistic-regression, after the second example, I can’t check my implementation due to some name error in example 3, 4, and 5.

The code snippets are not allowing to be edited too. What can I do about this?

This is the output of the implementation check of example 3

NameError Traceback (most recent call last)

in

1 # Compute and display gradient with w and b initialized to zeros

----> 2 initial_w = np.zeros(n)

3 initial_b = 0.

4

5 dj_db, dj_dw = compute_gradient(X_train, y_train, initial_w, initial_b)

NameError: name ‘n’ is not defined