Skip to main content

An awesome package that allows getting meaningful information from a Linear regression model

Project description

Reg2info

version Python Contributions welcome License

reg2info is a Python package for getting meaningful information from a Linear regression model.

Table of content

Where to get it

Binary installers for the latest released version are available at the Python Package Index (PyPI)

Use the package manager pip to install reg2info :

pip install reg2info

Dependencies

  • Numpy
  • Matplotlib

Main Features

  • A linear regression line has an equation of the form Y = a + bX, where X is the explanatory variable and Y is the dependent variable. The slope of the line is b, and a is the intercept (the value of y when x = 0).

  • A regression line is the “best fit” line for your data. You basically draw a line that best represents the data points. It’s like an average of where all the points line up. In linear regression, the regression line is a perfectly straight line.

Usage

import reg2info as r2i

lr = LinearRegression().fit(X_train, y_train)

# returns equation
eq = r2i.reg_equation(lr)

# returns line and data plot
plot = r2i.reg_plot(lr,X_train[feature], y_train)

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

reg2info-1.0.0.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

reg2info-1.0.0-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file reg2info-1.0.0.tar.gz.

File metadata

  • Download URL: reg2info-1.0.0.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/29.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.31.1 importlib-metadata/4.0.1 keyring/23.0.1 rfc3986/1.4.0 colorama/0.4.4 CPython/3.7.9

File hashes

Hashes for reg2info-1.0.0.tar.gz
Algorithm Hash digest
SHA256 445f7f5bbf013e4188bff398b6363c2ccf11345e7dc13086094e52f911db02f0
MD5 dbec4e28d66267aa5d19b4a69979f9e7
BLAKE2b-256 910e92ae6448226ec3906a14626e3390f29b1492a7997426dd3c6bf2bb768cf9

See more details on using hashes here.

File details

Details for the file reg2info-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: reg2info-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/29.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.31.1 importlib-metadata/4.0.1 keyring/23.0.1 rfc3986/1.4.0 colorama/0.4.4 CPython/3.7.9

File hashes

Hashes for reg2info-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 be8bcf44a462e3c2136cdc64ccb501d8a7caf8760096b866afc6a8279537bacb
MD5 d2b13ec091feceb38a2c725cb24b16c7
BLAKE2b-256 ebfa91446c37276ff112cc10606d8ce2d4d0eaf65c96e979bd4e7fc572791ffe

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page