An open API service indexing awesome lists of open source software.

https://github.com/udacity-machinelearning-internship/linear-regression-in-scikit-learn

Implementing linear regression using sckit-learn
https://github.com/udacity-machinelearning-internship/linear-regression-in-scikit-learn

linear-regression machine-learning sckiit-learn

Last synced: 11 months ago
JSON representation

Implementing linear regression using sckit-learn

Awesome Lists containing this project

README

          



![Linear_Regression_in_Sckit-learn](https://github.com/BaraSedih11/Linear-Regression-in-scikit-learn/assets/98843912/ec4a6dcb-f8c6-4808-b159-bb75eaaf95ba)

![GitHub repo size](https://img.shields.io/github/repo-size/BaraSedih11/Linear-Regression-in-scikit-learn) ![GitHub repo file count (file type)](https://img.shields.io/github/directory-file-count/BaraSedih11/Linear-Regression-in-scikit-learn) [![Python Version](https://img.shields.io/badge/python-3.8-blue)](https://www.python.org/downloads/release/python-380/)
[![Pip Version](https://img.shields.io/badge/pip-21.0-orange)](https://pypi.org/project/pip/21.0/)
![GitHub last commit (branch)](https://img.shields.io/github/last-commit/BaraSedih11/Linear-Regression-in-scikit-learn/main)
[![Version](https://img.shields.io/badge/version-v1.0.0-blue)](https://github.com/BaraSedih11/Linear-Regression-in-scikit-learn/releases/tag/v1.0.0)
[![Contributors](https://img.shields.io/github/contributors/BaraSedih11/Linear-Regression-in-scikit-learn)](https://github.com/BaraSedih11/Linear-Regression-in-scikit-learn/graphs/contributors)
![GitHub pull requests](https://img.shields.io/github/issues-pr-raw/BaraSedih11/Linear-Regression-in-scikit-learn)

This repository contains a simple implementation of linear regression using the scikit-learn library in Python.

## Overview
Linear regression is a fundamental technique in statistics and machine learning for modeling the relationship between a dependent variable and one or more independent variables. It assumes a linear relationship between the input variables (features) and the output variable (target).

In this repository, we demonstrate how to perform linear regression using the scikit-learn library, which is a powerful tool for machine learning in Python. We provide a simple example along with explanations to help you understand how to apply linear regression to your own datasets.

## Contents

- `Linear Regression.ipynb`: Jupyter Notebook containing the implementation of polynomial regression using Python.
- `bmi_and_life_expectancy.csv`: Sample dataset used in the notebook for demonstration purposes.
- `README.md`: This file providing an overview of the repository.

## Requirements
To run the code in the Jupyter Notebook, you need to have Python installed on your system along with the following libraries:

* NumPy
* pandas
* scikit-learn
* matplotlib
You can install these libraries using pip:

```bash
pip install numpy pandas scikit-learn matplotlib
```

## Usage

1. Clone this repository to your local machine:

```bash
git clone https://github.com/BaraSedih11/Linear-Regression-in-scikit-learn.git
```

2. Navigate to the repository directory:

```bash
cd Linear-Regression-in-scikit-learn
```

3. Open and run the Jupyter Notebook `Linear-Regression-in-scikit-learn.ipynb` using Jupyter Notebook or JupyterLab.

4. Follow along with the code and comments in the notebook to understand how linear regression is implemented using Python.

## Acknowledgements

- [scikit-learn](https://scikit-learn.org/): The scikit-learn library for machine learning in Python.
- [NumPy](https://numpy.org/): The NumPy library for numerical computing in Python.
- [pandas](https://pandas.pydata.org/): The pandas library for data manipulation and analysis in Python.
- [matplotlib](https://matplotlib.org/): The matplotlib library for data visualization in Python.