Skip to main content

Support Vector Machine Classifier

Project description

TNO Quantum: ML - Classifiers - Support Vector Machine

TNO Quantum provides generic software components aimed at facilitating the development of quantum applications.

This package implements a scikit-learn compatible, (quantum) support vector machine.

During the fit, the (quantum) support vector machine solves a discretized version of the continuous optimization problem posed by a standard kernel support vector machine. This discrete optimization problem can be solved using quantum optimization algorithms (DWAVE, QAOA, etc.). Predictions are done classically based on the solutions found during fit.

An earlier version of the SVM was used in the following publication:

Limitations in (end-)use: the content of this software package may solely be used for applications that comply with international export control laws.

Documentation

Documentation of the tno.quantum.ml.classifiers.svm package can be found [here](https://tno-
quantum.github.io/documentation/).

Install

Easily install the tno.quantum.ml.classifiers.svm package using pip:

$ python -m pip install tno.quantum.ml.classifiers.svm

Example

The Support Vector Machine can be used as shown in the following example.

from tno.quantum.ml.classifiers.svm import SupportVectorMachine
from tno.quantum.ml.datasets import get_iris_dataset

X_training, y_training, X_validation, y_validation = get_iris_dataset(n_classes=2)
svm = SupportVectorMachine()
svm = svm.fit(X_training, y_training)
predictions_validation = svm.predict(X_validation)

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

tno_quantum_ml_classifiers_svm-2.0.2.tar.gz (47.8 kB view details)

Uploaded Source

Built Distribution

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

tno_quantum_ml_classifiers_svm-2.0.2-py3-none-any.whl (46.9 kB view details)

Uploaded Python 3

File details

Details for the file tno_quantum_ml_classifiers_svm-2.0.2.tar.gz.

File metadata

File hashes

Hashes for tno_quantum_ml_classifiers_svm-2.0.2.tar.gz
Algorithm Hash digest
SHA256 05f03766e2ac27199a15d607c5b6779379cd795b233520b43e3fe3f0b193d4fb
MD5 42bde53d0ec0236e347da9e85636be63
BLAKE2b-256 ff904c08c6a2755fba7dddd101e9d960f8e88f90dec638ab740edbd1cd3581a5

See more details on using hashes here.

File details

Details for the file tno_quantum_ml_classifiers_svm-2.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for tno_quantum_ml_classifiers_svm-2.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2252667ee19319a52c5992be367cc8d4c5b6fed67e3aa310344f634ac57b559f
MD5 d2a0eb7c87f3459264498cbdf7c086be
BLAKE2b-256 f1bcae34d57ee8ff8a243108e7fd30090b79c6b6d9784da3b55da19401a13f5b

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