[Scikit-learn-general] Passing 1d arrays as data is deprecated in 0.17 and willraise ValueError in 0.19

2016-02-06 Thread Sasha Kacanski
Hi, I am new to scikit... Start playing with leaner regression and Ran into this issue... Now even after I reshaped X I still get warning ... I am not sure if I should let it be or I am doing something fundamentally wrong Example: X = np.array([10, 20, 30, 60, 108]) Y = np.array([11, 23, 43, 170

Re: [Scikit-learn-general] Passing 1d arrays as data is deprecated in 0.17 and willraise ValueError in 0.19

2016-02-09 Thread Sasha Kacanski
, y) > > There’s also a problem in your predict call since you only have 6 samples, > you can’t have a “12” in there, only values from 0, 5. E.g., > > print("Predict for number 6 {}".format(model.predict([5]))) > Predict for number 6 [-146.58922645] > > Best, > Sebast