Skip to main content

simple-linreg

Simple linear regression implemented from scratch with NumPy (SEDS Lab 3).

Installation

pip install simple-linreg

Usage

from simple_linreg import LinearRegression

x = [1, 2, 3, 4, 5]
y = [2.1, 3.9, 6.2, 7.8, 10.1]

model = LinearRegression().fit(x, y)
model.predict([6])        # array([12.0])
model.score(x, y)         # R^2
model.summary(x, y)       # {'intercept': ..., 'slope': ..., 'R2': ..., 'std_err': ...}

License

MIT

Metadata

Release files for simple-linreg 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 0.1.0
File Size Uploaded Provenance
simple_linreg-0.1.0.tar.gz 3.3 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 6.9 kB

Release files / simple_linreg-0.1.0.tar.gz

Download URL simple_linreg-0.1.0.tar.gz
Size 3.3 kB
Tags Source
SHA-256 checksum
How to use checksums
c9f99437f73613c26fd169e1ed4b52e30c04b5e3a0fbb802570dce7890d332f1
BLAKE2b-256 checksum
How to use checksums
b437704065072c64e0e514b3aa5e32b43b7da48d7074433398cdc50edf8ff5a6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.9

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

Download URL simple_linreg-0.1.0-py3-none-any.whl
Size 3.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
355aeaeb3afc3ea17cee34c39360c1fe1cc5ec5c7ae05b7e1cc42d3940a9459e
BLAKE2b-256 checksum
How to use checksums
da7d3d9d3fa0b6e8686bd2a99dd040f6d3e3a8fca16f068273b6583c99e4e5a2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.9

Security for simple-linreg 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