Skip to content

osctoss/Linear_regression_model

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“Š Linear Regression Model

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 Details


πŸ§ͺ What's Inside?

  1. Importing Essential Libraries
  2. Generating a Random Dataset
  3. Splitting Dataset into Training and Testing
  4. Training a Linear Regression Model
  5. Visualizing the Regression Line
  6. Calculating Model Accuracy (MSE & RΒ² Score)

πŸš€ Quick Preview

πŸ”— View Notebook on GitHub
▢️ Open in Google Colab


πŸ“Œ Requirements

You can run this notebook locally with the following libraries installed:

pip install numpy matplotlib scikit-learn

About

A simple linear regression model using Python, NumPy, Matplotlib, and scikit-learn.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors