dotaml icon indicating copy to clipboard operation
dotaml copied to clipboard

app.py AttributeError

Open lhy0807 opened this issue 8 years ago • 1 comments

Hi! Your project is amazing! I am very interested in your project and want to try it or even improve it. I am facing problems when I run app.py. It keep telling me that AttributeError: 'KNeighborsClassifier' object has no attribute 'n_jobs' or DeprecationWarning: Passing 1d arrays as data is deprecated in 0.17 and will raise ValueError in 0.19. Reshape your data either using X.reshape(-1, 1) if your data has a single feature or X.reshape(1, -1) if it contains a single sample. DeprecationWarning)

Is this because we are using the different versions of sklearn libraries?

lhy0807 avatar Mar 27 '17 14:03 lhy0807

Is this because we are using the different versions of sklearn libraries?

Yes I think so. It sounds like you have a version of sklearn that is at least 0.17 (Passing ld arrays as data is deprecated in 0.17...). The requirements.txt file in this repo wants 0.14.1, so it may be easier to just use virtualenv with this repo so you get the same versions of the requirements that we used originally.

kevincon avatar Mar 27 '17 16:03 kevincon