This release is a pre-release and may not be stable for production use.
Welcome to svdynamics! Support Vector Dynamics is a lightweight, scikit-learn
compatible Python library for building and using mixed (composite) kernels for
support vector machines. It provides a simple and extensible interface for
combining multiple kernel functions into a single weighted kernel, while
remaining fully compatible with existing sklearn pipelines, cross-validation,
and calibration workflows.
svdynamics focuses on making kernel composition a first-class modeling primitive
for both classification and regression, without requiring any changes to the
underlying scikit-learn API.
Prerequisites
Before you install svdynamics, ensure your system meets the following requirements:
Python: Version3.8or higher.
Additionally, svdynamics depends on the following packages, which will be automatically installed:
numpy: version1.21or higherscikit-learn: version1.0or higher
💾 Installation
To install svdynamics, simply run the following command in your terminal:
pip install svdynamics
Quick Start
import numpy as np
from sklearn.datasets import make_classification
from svdynamics import CompositeKernel, SVDClassifier
X, y = make_classification(n_samples=300, n_features=10, random_state=0)
kernel = CompositeKernel(
kernels=[
("rbf", {"gamma": 0.2}),
("linear", {}),
("poly", {"degree": 2, "coef0": 1.0}),
],
weights=[0.6, 0.3, 0.1],
normalize=True,
)
clf = SVDClassifier(C=1.0, kernel=kernel, probability=True, random_state=0)
clf.fit(X, y)
proba = clf.predict_proba(X[:5])
pred = clf.predict(X[:5])
print(proba)
print(pred)
📄 Official Documentation
https://lshpaner.github.io/svdynamics
🌐 Authors' Website
⚖️ License
svdynamics is distributed under the MIT License. See LICENSE for more information.
Metadata
Release files for svdynamics 0.0.0a0
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 | |
|---|---|---|---|---|
| svdynamics-0.0.0a0.tar.gz | 9.4 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| svdynamics-0.0.0a0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 18.6 kB
Release files / svdynamics-0.0.0a0.tar.gz
| Download URL | svdynamics-0.0.0a0.tar.gz |
|---|---|
| Size | 9.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4d038334738efc3a1f82b3bbbce10a27321345fad2af31370eb74c3bd76a4062
|
|
BLAKE2b-256 checksum How to use checksums |
1146e6594c60765498a3c270cd2ea9be6e62e3cadd263f768b201bd0184957f4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.0
|
Release files / svdynamics-0.0.0a0-py3-none-any.whl
| Download URL | svdynamics-0.0.0a0-py3-none-any.whl |
|---|---|
| Size | 9.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cb5c5098fd22e66d92f86997548cebb9cf19e45e9df385dba521fbffb740faf9
|
|
BLAKE2b-256 checksum How to use checksums |
d716ed60420b1d20998e82e49a734675d2fa56a25597698d67e92d0ae92dfbe3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.0
|
Security for svdynamics 0.0.0a0
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.