Thursday, May 21, 2020

Answer for Making prediction with Scikit learn

https://365datascience.com/dwqa-answer/answer-for-making-prediction-with-scikit-learn/ -

Hi Gurpinder,

Thanks for reaching out.

Please note that sklearn expects your data to be in 2D form.

To achieve that you can write:


reg.predict([[1740]])

And the problem will be fixed. 

Note that when we were recording the video, it was working even without the square brackets.

Best,
The 365 Team




#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