This project uses Simple Linear Regression to predict how many problems can be solved based on the number of days of practice.
The goal of this project is to understand and implement a basic Machine Learning model that predicts:
๐ Number of problems solved (output)
based on
โณ Number of days practiced (input)
- Simple Linear Regression
- Data Visualization (Matplotlib)
- Train-Test Split
- Model Training & Prediction
The dataset is manually created and represents a learning pattern over time.
| Days | Problems Solved |
|---|---|
| 1 | 1 |
| 2 | 6 |
| 4 | 10 |
| ... | ... |
- Python ๐
- Pandas
- NumPy
- Matplotlib
- Scikit-learn
- Load dataset using Pandas
- Split data into training and testing sets
- Train model using
LinearRegression() - Visualize results using scatter plot + regression line
- Predict future outcomes
model.predict([[23]])