Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hexaguin/quickregress
Provides a low-effort wrapper for sklearn's polynomial regression
https://github.com/hexaguin/quickregress
Last synced: 8 days ago
JSON representation
Provides a low-effort wrapper for sklearn's polynomial regression
- Host: GitHub
- URL: https://github.com/hexaguin/quickregress
- Owner: hexaguin
- License: mit
- Created: 2020-01-23T05:12:45.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2022-08-23T20:02:27.000Z (over 2 years ago)
- Last Synced: 2024-03-24T12:20:22.967Z (10 months ago)
- Language: Python
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# quickregress
## Polynomial regression for the lazy`quickregress` is a minimalist wrapper for sklearn's polynomial and linear regression functionality, intended to reduce the amount of effort needed for simple regression operations.
`quickregress` provides one function: `regress(x, y, degree)`. `regress` returns a `RegressionResult`, which has the following methods:
`predict(x)` returns the model's predictions for a list of x values.
`formula(digits=6, latex=False)` returns the model's formula as a string. `digits` changes the number of significant digits, and `latex` outputs a LaTeX-friendly string (for use with Jupyter and the like).