This repository demonstrates a simple Linear Regression model using Python, NumPy, Matplotlib, and scikit-learn. The notebook showcases the step-by-step process of creating a random dataset, fitting a linear model, and evaluating its performance using metrics like MSE and RΒ² score.
- π Repository Name:
Linear_regression_model - π€ Author: osctoss
- π Notebook File:
Linear_Model.ipynb
- Importing Essential Libraries
- Generating a Random Dataset
- Splitting Dataset into Training and Testing
- Training a Linear Regression Model
- Visualizing the Regression Line
- Calculating Model Accuracy (MSE & RΒ² Score)
π View Notebook on GitHub
You can run this notebook locally with the following libraries installed:
pip install numpy matplotlib scikit-learn