Simple Linear Regression Implementation -Machine Learning Tutorial with Python and R-Part 6

24 thoughts on “Simple Linear Regression Implementation -Machine Learning Tutorial with Python and R-Part 6”

1. Sepideh Mollaee says:

Great!

2. divakar m says:

Hi krish,
please provide the tutorial for handling missing values if i have more nan values in my dataset how to handle.

3. CAMERAshow says:

No module named 'sklearn.cross_validation' issue. Just change sklearn.cross_validation by sklearn.model_selection

4. MANIVANNAN V says:

While implementing the classifier, getting the error
, Found input variables with inconsistent numbers of samples: What is the issue ?

5. Harshita Saraswat says:

Can we specify x as x=dataframe.YearsExperience too? That will serve same , right?

6. Mohith Sai says:

7. Anay Karandikar says:

Hey Krish, it's a great video!!! I have a little doubt. Actually, I'm new to machine learning and have seen many tutorials on this topic. In some, the linear regression problem is solved using sklearn, pandas libraries while in some, only numpy library with basic python programming is used to solve. Which one method is better to use??

I have multiple columns in my csv file. for selecting x variable what will the syntax of code. Please solve it. how do i select only one column for x variable?

9. Suparna Karmakar says:

Wow its really awesome. Procedure is Working Nicely.

10. long946 says:

Hi Krish, great video so far

Just a simple question.

I currently have 2 CSVs of the same size, one training data set with output values provided, test set with no output values.

How do I run simple linear regression dataset splitting based on your approach? Do i combine the 2 CSVs together?
If so, how do I split the combined dataset?
(X_train, X_test, y_train, y_test = train_test_split(X, y, test_size = 1/2, random_state = 0))

11. Ajay Chhillar says:

Best video of Linear regression seen now, thanks lot sir

12. Knowledge today says:

Really very nice video for beginners!!!…

13. RITAM GHOSH says:

detailed information is given to the above video just in a single its one of the best

14. Sumithra P says:

i have one question for you, suppose so many variables is there in given data sets, then i select particular 2 or 3 variables how to code in python [x=dataset.iloc[:,:-1].values]

15. Sumithra P says:

Hi sir i have a one problem in import , from sklearn.cress_validations import train_test_split is not imported

16. sathiyaraj ravi says:

17. Umair Rehman says:

please make a video on KG(Kriging Method)

18. Harsha Koshila says:

Thanks for the tutorial bro

19. Swarup Panda says:

Hi can you consider using vif on the linear regression model?

20. JSX 03 says:

Good tutorial! Where is the CSV friend?

21. Richa Sharma says:

hello sir,please upload the videos of SVM classifier and XGboost in python…thanks.

22. Gbenga Abiodun says:

Thanks for the tutorial
I try to run the code on python 27 but am having this import error: No module named sklearn_cross_validation

23. Richa Sharma says:

Nice video sir,you've really explained the concepts very well.But now I would like to know that if we want to change the parameters of linear regression from default values,so that it shows less error.Then,how could we do this and what values should we've to give to the parameters.

24. Sikou KOÏTA says:

hI kRISH,
Please how to get the dataset?
can i use notebook Jupyter instead SPYDER?