Skip to main content

A simple linear regression model built from scratch in Python.

Project description

simpleLinRegAbh

A simple linear regression model built from scratch using pure Python.

Usage

from simpleLinRegAbh import SimpleLinearRegression

X = [1, 2, 3, 4, 5]
y = [2, 4, 5, 4, 5]

model = SimpleLinearRegression()
model.fit(X, y)

print("Slope:", model.b1)
print("Intercept:", model.b0)
print("Predictions:", model.predict([6, 7]))
print("R² score:", model.score(X, y))

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

simplelinregabh-1.0.0-py3-none-any.whl (2.6 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for simplelinregabh-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d18ef910fafdd547a104d81e5333f4079b4333f546e99eb8360f02208f3608f2
MD5 ad6978152fc7d7929ee2877d08430421
BLAKE2b-256 4277579e207461e81e4604729408184614f4ae49e3517c547662d27979b8988d

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