lssvr
lssvr is a Python module implementing the Least Squares Support Vector Regression using the scikit-learn as base.
instalation
the lssvr package is available in PyPI. to install, simply type the following command:
pip install lssvr
or using Poetry:
poetry add lssvr
basic usage
Example:
import numpy as np
from lssvr import LSSVR
from sklearn.datasets import load_boston
from sklearn.model_selection import train_test_split
from sklearn.metrics import mean_squared_error
boston = load_boston()
X_train, X_test, y_train, y_test = train_test_split(boston.data, boston.target, test_size=0.2)
model = LSSVR(kernel='rbf', gamma=0.01)
model.fit(X_train, y_train)
y_hat = model.predict(X_test)
print('MSE', mean_squared_error(y_test, y_hat))
print('R2 Score',model.score(X_test, y_test))
contributing
this project is open for contributions. here are some of the ways for you to contribute:
- bug reports/fix
- features requests
- use-case demonstrations
to make a contribution, just fork this repository, push the changes in your fork, open up an issue, and make a pull request!
Metadata
Release files for lssvr 0.1.0
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 | Actions |
|---|---|---|---|---|
| lssvr-0.1.0.tar.gz | 3.8 kB | Without provenance | Details for lssvr-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| lssvr-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for lssvr-0.1.0-py3-none-any.whl |
Total release size: 8.4 kB
Release files / lssvr-0.1.0.tar.gz
| Download URL | lssvr-0.1.0.tar.gz |
|---|---|
| Size | 3.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
696d6d7c88daa96c292865b444c9be67bfbe6b0dc5411bcdeb78516ac6eb3a38
|
|
BLAKE2b-256 checksum How to use checksums |
c2e236d54bc7aae3603b85a3be161ed1892895008d101eb9f67326c09e993750
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.3 CPython/3.8.5 Linux/5.4.0-56-generic
|
Release files / lssvr-0.1.0-py3-none-any.whl
| Download URL | lssvr-0.1.0-py3-none-any.whl |
|---|---|
| Size | 4.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5b4ebe455542fe24e6d2891ffcd0007dea2f5390ff1898f82eca1f3dc3e77483
|
|
BLAKE2b-256 checksum How to use checksums |
63dee2a4c84b8df40dbbb533bb81638bb4ac26ddf5b5e9136c714183adecc64b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.3 CPython/3.8.5 Linux/5.4.0-56-generic
|
Security for lssvr 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.