Wednesday, July 15, 2020

Answer for Simple Linear Regression with sklearn – Summary Table

https://365datascience.com/dwqa-answer/answer-for-simple-linear-regression-with-sklearn-summary-table-2/ -

Hi Manish, 

the reg.predict(1740) doesn’t appear to be running in the newer versions of Python. Instead you could try the following:

new_array = np.array(1740).reshape(-1,1)
reg.predict(new_array)

Do let us know if there is still an issue.

Best, 

365 Eli

 




#365datascience #DataScience #data #science #365datascience #BigData #tutorial #infographic #career #salary #education #howto #scientist #engineer #course #engineer #MachineLearning #machine #learning #certificate #udemy

No comments:

Post a Comment