Convert scikit-learn SVM based models to neonsvm format
Project description
skl2neonsvm
Library for converting scikit-learn SVM-based classification and regression models to neonsvm YAML format for optimized inference on ARM devices using C++ library neonsvm.
Installation
From PyPi
pip install skl2neonsvm
From repository
pip install git+https://github.com/R3dKar/sklearn-neonsvm
Usage
# Training model
from sklearn.datasets import make_classification
from sklearn.svm import SVC
X, y = make_classification(random_state=42)
model = SVC().fit(X, y)
# Converting and exporting
from skl2neonsvm import to_neonsvm
data = to_neonsvm(model)
with open("model.yaml", "w") as f:
f.write(data)
Supported models
All models of submodule sklearn.svm are supported.
Supported classification models:
SVCNuSVCLinearSVCOneClassSVM
Supported regression models:
SVRNuSVRLinearSVR
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 skl2neonsvm-0.1.0.tar.gz.
File metadata
- Download URL: skl2neonsvm-0.1.0.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
56959fdd9234ccad0b950cfce5df6f069c60f2eb497863f991db7e0a6fb3dd54
|
|
| MD5 |
521223fc534b68f920be9bd4bebdd03d
|
|
| BLAKE2b-256 |
a2eee9c6a9fe4eb7a9bc7834c75752b864b0c79b838ebeb8a24f7c3568314e66
|
File details
Details for the file skl2neonsvm-0.1.0-py3-none-any.whl.
File metadata
- Download URL: skl2neonsvm-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6c581e227e9e92dfd308d47208462b7ec1302a8e69bdbc947c3744edb738e404
|
|
| MD5 |
efe9e10e9096451b0629dea545e7cbba
|
|
| BLAKE2b-256 |
327a062be154746a89c595ec0657e303558fc628f6070451869b7f065b0f5abf
|