Introduction to Machine Learning with scikit-learn

I’ve a problem with the fourth task, when I verify it, the system qualifies it as incorrect, what could I be doing wrong?

Hey Simon,

Hmm…your code seems to be working on my end. I’ve temporarily enabled error messages on this task - can you please rerun the check and let me know what error message you see?


Ups sorry, is the sixth task.

It’s say: You should store the feature values in a NumPy array. This array should have the size (1, 24) . Then pass this array into lr.predict .
And It’s my code: # TASK — Predict price of new_house1
new_house1 = np.array([[0, 12000, 6, 6, 1200, 500, 3, 5, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]])

Hmm, your code for this task seems to be passing for me too. Can you recheck it and take a look at the error message and let me know what it says?

if I check it again it’s the same.