Skip to main content

simple_linreg

simple_linreg is a Python library implementing a Simple Linear Regression model from scratch.

Installation

Use the package manager pip to install simple_linreg.

pip install simple-linreg-esi

Usage

from simple_linreg import SimpleLinearRegression

model = SimpleLinearRegression().fit([0, 1, 2, 3], [1, 3, 5, 7])
model.predict([4, 5])                 # returns array([ 9., 11.])
model.score([0, 1, 2, 3], [1, 3, 5, 7])   # R^2 = 1.0

License

MIT

Metadata

Release files for simple-linreg-esi-chahd 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for simple-linreg-esi-chahd 0.1.0
File Size Uploaded Provenance Actions
simple_linreg_esi_chahd-0.1.0.tar.gz 4.9 kB Without provenance Details for simple_linreg_esi_chahd-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for simple-linreg-esi-chahd 0.1.0
File Interpreter ABI Platform Actions
simple_linreg_esi_chahd-0.1.0-py3-none-any.whl Python 3 none any Details for simple_linreg_esi_chahd-0.1.0-py3-none-any.whl

Total release size: 8.4 kB

Release files / simple_linreg_esi_chahd-0.1.0.tar.gz

Download URL simple_linreg_esi_chahd-0.1.0.tar.gz
Size 4.9 kB
Tags Source
SHA-256 checksum
How to use checksums
25116ce1d2470fcaa76e45a7c0c958fffaab483ded38435ff89534b68d4bc43c
BLAKE2b-256 checksum
How to use checksums
c87a5dc3a021a4c33086b4817ec56106727a67d485311b270e327452c646a60d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.10

Release files / simple_linreg_esi_chahd-0.1.0-py3-none-any.whl

Download URL simple_linreg_esi_chahd-0.1.0-py3-none-any.whl
Size 3.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
29b6e6cec37084b9c020ea0b49f53bca02e4dbd70e5e3b3a4d9fce94645d1d4c
BLAKE2b-256 checksum
How to use checksums
2fcbcd44d8bc9d765cee8e834d1205875528c8dde5baa8559648f2dd8314a369
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.10

Security for simple-linreg-esi-chahd 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page