Sasha Kacanski
2016-02-06 16:52:24 UTC
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.5, 934.6])
model = LinearRegression()
x = X.reshape(-1,1)
model.fit(x,y)
print("Predict for number 12 {}".format(model.predict([12])[0]))
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.5, 934.6])
model = LinearRegression()
x = X.reshape(-1,1)
model.fit(x,y)
print("Predict for number 12 {}".format(model.predict([12])[0]))
--
Aleksandar Kacanski
Aleksandar Kacanski