Skip to content

Uses the Diabetes data set from Sklearn and plots the line of best fit using y = mx + b.

License

Notifications You must be signed in to change notification settings

Nadia-JSch/Linear-regression-best-fit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Linear-regression-best-fit

Plots the line of best fit to data showing the progression of diabetes (Y-axis) given BMI. The aim is to understand how linear regression is used in supervised machine learning.

Description

Uses the Diabetes data set from Sklearn to find the line of best fit using y = mx + b. Values of y are predicted given m and b that are trained on the given labelled data. Data consists of BMI values (standardised to a 0 mean) and the x-axis and diabetes disease progression (after one-year baseline)

Dependencies

The following libraries are imported:

  • matplotlib (for plotting the scatter plot)
  • numpy (for arrays and maths functions)
  • sklearn (for the data set)

Result

line of best fit

Author

Nadia Schmidtke contact

License

This project is licensed under the GNU GENERAL PUBLIC LICENSE.

About

Uses the Diabetes data set from Sklearn and plots the line of best fit using y = mx + b.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages