Skip to main content

A simple Linear Regression implementation in pure Python

Project description

simplinear_regression

A simple Linear Regression implementation in pure Python without any dependencies.

Installation

pip install simplinear_regression

Usage

import simplinear_regression

model = simplinear_regression()

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

model.fit(X, y)

predictions = model.predict([6, 7])
print("Predictions:", predictions)

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

simplinear_regression-0.1.0.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

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

simplinear_regression-0.1.0-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: simplinear_regression-0.1.0.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.5

File hashes

Hashes for simplinear_regression-0.1.0.tar.gz
Algorithm Hash digest
SHA256 8bcc5d0af2de569813c16eba93daea3f89fd3e434bc2ccec1d823653f9b2b26f
MD5 19d3ce1f2ce6715890d85ce805f91904
BLAKE2b-256 7a1285186bb7ce8b10313cfd85fe4340310b11025ba976a6849742f8c074a255

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simplinear_regression-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0c7a8d5f601c6af0941e5857758724e171c6903072bd19fe6c6914e082e7a326
MD5 bc9e00b959d0902acadbcca260c46454
BLAKE2b-256 10304657e49b4ead0b71f401fbf79a2c39fb551f81d8cb3e4b110bfe59eaef92

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