Member-only story
Data Science
Create A Simple Linear Regression Code Using Supervised ML in Python
A beginner's guide to creating a simple Supervised Machine learning project in Python.
2 min readJan 24, 2021
Index Of Contents
· The Sparks Foundation Task 1
· Preparing the data
· Training the Algorithm
· Making Predictions
· Assignment: Predict score using the number of hours = 9.25
· Evaluating the model
· Conclusion
The Sparks Foundation Task 1
This is the first task of the Data Science & Business Analytics track for The Sparks Foundation; “Sparks Internship”. In this regression task, we will predict the percentage of marks that a student is expected to score based upon the number of hours they studied. This is a simple linear regression task as it involves just two variables.
Next, we will import our data from a remote file.