py4svd-regressor
SVD Based Linear Regression Python Library
Getting Started
This project is simply an implementation of a Linear Regression algorithm based on SVD in python programming language
Prerequisites
Numpy
Installation
The easiest way to install py4svd-regressor is by using pip
pip install py4svd-regressor
Usage
2 public methods are provided namely learn and predict. The learn method used to train the model. It takes 2 arguments, the data, and its target. The predict method used to predict the given data, it takes 1 argument, it is the data user wanted to predict. It returns the resulting prediction. The weight and intercept are stored on attributes namely w and b respectively
from py4svd_regressor.regression import Svd_Regressor
from sklearn.datasets import make_regression
from matplotlib import pyplot
x, y = make_regression(n_samples=200, n_features=1, noise=5)
model = Svd_Regressor()
model.train(x, y)
pyplot.scatter(x, y)
pyplot.plot(x, model.w*x + model.b, color='red')
pyplot.show()
y_predict = model.predict(x)
Metadata
Release files for py4svd-regressor 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| py4svd_regressor-0.0.1.tar.gz | 2.4 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| py4svd_regressor-0.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 4.8 kB
Release files / py4svd_regressor-0.0.1.tar.gz
| Download URL | py4svd_regressor-0.0.1.tar.gz |
|---|---|
| Size | 2.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4bfae5e8dc29a38f9cf04715fa85ab7c2980e4d56dd37780c8c7cbff1c6cea5a
|
|
BLAKE2b-256 checksum How to use checksums |
02f0a705caf46b21b829ceecb6b339368a1b6217554c5a9786efb12ae4c1ed42
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.5
|
Release files / py4svd_regressor-0.0.1-py3-none-any.whl
| Download URL | py4svd_regressor-0.0.1-py3-none-any.whl |
|---|---|
| Size | 2.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6bb6225013e1f4202ac4d61a33c97ab6e70c4e4935c7fbc3580d144da4c06e8e
|
|
BLAKE2b-256 checksum How to use checksums |
a83be1a209db8964d77bbb16fe936ecb04e4ab3b3a1a78ceede3e9737d39f0fd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.5
|
Security for py4svd-regressor 0.0.1
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.