TransWikia.com

Is there a limited number of features for QSVM in Qiskit-Aqua?

Quantum Computing Asked by mip on August 15, 2021

Why do all tutorials that use QSVM from qiskit Aqua library have the number of features equal to 2?

One Answer

Here is a tutorial that uses three classes! If you want to use more than two classes, you need a multiclass_extension which is provided as a parameter to the QSVM

svm = QSVM(feature_map, training_input, test_input, total_array,
          multiclass_extension=AllPairs(_QSVM_Estimator, [feature_map]))

As shown in the tutorial. There are a few multiclass extensions to choose from, which are all here.

Answered by met927 on August 15, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP