Simple Linear Regression implemented from scratch
Project description
Regression Model (Challenge 5)
This package implements a Simple Linear Regression model from scratch in Python.
Installation
Offline
pip install dist/regression_model_moha-1.0.0-py3-none-any.whl
Online
pip install regression-model-moha
Usage
from regression_model import SimpleLinearRegression
X = [1, 2, 3, 4, 5]
y = [2, 4, 5, 4, 5]
model = SimpleLinearRegression()
model.fit(X, y)
print(model.predict([6]))
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file regression_model_moha-1.0.0.tar.gz.
File metadata
- Download URL: regression_model_moha-1.0.0.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
22963cfd3133cf5e3c310f30d5bb03cca3338afb1db7991be0b2da32ad9a6d2c
|
|
| MD5 |
27da6d15229c1de9dc89a9b28e59cf9c
|
|
| BLAKE2b-256 |
02e158f5df922a9b9a6c8239b43458cd10d4fb2f6aeb07d3b0a9750b99d4d861
|
File details
Details for the file regression_model_moha-1.0.0-py3-none-any.whl.
File metadata
- Download URL: regression_model_moha-1.0.0-py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2987929eba29d8930101c24386e78ff67e562a5b1064dddc7e6d277930f7b3c4
|
|
| MD5 |
088752686ead1bd3ca64f1295a29efe3
|
|
| BLAKE2b-256 |
193f7b5398f76a2507e82dec6d62cc54b4cdf98eb5125053dd2a3b8cfce751e0
|