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]))




-- 
Aleksandar Kacanski
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
Scikit-learn-general mailing list
Scikit-learn-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/scikit-learn-general

Reply via email to