Skip to content

Small-Samori/Linear-Regression-Algorithm-from-Scratch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Overview

In this project, the Linear Regression Algorithm was built from scratch.

First, a dataset is randomly generated. Then the best fit slope and intercept for the dataset is determined. The Squared Error and Coefficient of Determination is also calculated to gauge the performance of the mode.

This is a visualization of the line of best fit the algorithm determined for a randomly generated dataset:

Dependencies

  • Numpy
  • Matplotlib

Usage

  1. cd '..\Linear Regression Algorithm from Scratch'
  2. python 'Linear Regression Algorithm From Scratch.py'

Credit

Sentdex

About

The Linear Regression Algorithm is built from scratch

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages