Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

CodePleaseRun/polynomial-regression

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

4 Commits

Repository files navigation

Polynomial Regression

An interactive matlplotlib plot for polynomial regression


Installation

git clone https://github.com/CodePleaseRun/polynomial-regression.git
cd polynomial-regression

Dependencies:

  • matplotlib
  • numpy
  • sympy

Usage

python main.py

OR

python main.py points

where points is the file containing data points to be interpolated

.95,2.01
2.10,3.89
2.98,9.15
4.01,15.92
5.11,25.2
5.88,35.94
7.06,48.85
7.97,64.18
9.12,81.03
10.08,99.93

  • Program will begin with a blank plot (unless data points are imported from points)

  • Double clicking anywhere in the axes will plot the point and will update the curve accordingly

  • Slider can be used to change the degree of the fitting curve (0 to 30)

  • More points can be added by double clicking anywhere. The curve will update automatically.


  • Reset button can be used to delete all the plots and start fresh

Licence

MIT

About

An interactive matlplotlib plot for polynomial regression

Topics

Resources

License

Stars

Watchers

Forks

Languages

AltStyle によって変換されたページ (->オリジナル) /