Skip to main content

Convert scikit-learn SVM based models to neonsvm format

Project description

skl2neonsvm

PyPI - Version PyPI - Python Version

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:

  • SVC
  • NuSVC
  • LinearSVC
  • OneClassSVM

Supported regression models:

  • SVR
  • NuSVR
  • LinearSVR

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

skl2neonsvm-0.1.0.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

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

skl2neonsvm-0.1.0-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

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

Hashes for skl2neonsvm-0.1.0.tar.gz
Algorithm Hash digest
SHA256 56959fdd9234ccad0b950cfce5df6f069c60f2eb497863f991db7e0a6fb3dd54
MD5 521223fc534b68f920be9bd4bebdd03d
BLAKE2b-256 a2eee9c6a9fe4eb7a9bc7834c75752b864b0c79b838ebeb8a24f7c3568314e66

See more details on using hashes here.

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

Hashes for skl2neonsvm-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6c581e227e9e92dfd308d47208462b7ec1302a8e69bdbc947c3744edb738e404
MD5 efe9e10e9096451b0629dea545e7cbba
BLAKE2b-256 327a062be154746a89c595ec0657e303558fc628f6070451869b7f065b0f5abf

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