Skip to main content

This is a simple implementation of Linear Regression using the method of Least Squares

Project description

Simple Regression

This is a super simple implementation of Regression (Linear and Quadratic), built from scratch using numpy.

Usage

Run:

pip install simple-regression-grqphical

Quickstart:

from simple_regression import SimpleRegression, RegressionType

data = [(0,0), (1, 3), (2, 5), (-3, 7)]
lr = SimpleRegression(data, regression_type=RegressionType.Linear)

y = lr.predict(7)

License

This project is licensed under the MIT License

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

simple_regression_grqphical-0.1.0.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

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

simple_regression_grqphical-0.1.0-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file simple_regression_grqphical-0.1.0.tar.gz.

File metadata

File hashes

Hashes for simple_regression_grqphical-0.1.0.tar.gz
Algorithm Hash digest
SHA256 eb63c8820dd8d94cfe251a8757a0b4952058a7162206d548293aaf010a129f8b
MD5 9b11f90aaae80ebde0faacd7b8036890
BLAKE2b-256 a3781aca837e65ebfd0c184b7b8f27bde9038c82d37498cf53fa1abe630e584b

See more details on using hashes here.

File details

Details for the file simple_regression_grqphical-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for simple_regression_grqphical-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b70665df3425a58f1c9d3ec0da5db8591295866bc964d397fc9631c7ff1157b3
MD5 98a4b0e8acef5edf2581a83d1e87a80b
BLAKE2b-256 3de0452d8e41959ac9976e0e8cff285a6cc44b61d43dcb2c2110a24544a1bebf

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