Skip to main contentIBM Quantum Documentation
This page is from an old version of Qiskit SDK and does not exist in the latest version. We recommend you migrate to the latest version. See the release notes for more information.

MulticlassExtension

class MulticlassExtension

GitHub

Bases: abc.ABC

Base class for multiclass extension.

This method should initialize the module and use an exception if a component of the module is not available.


Methods

predict

abstract MulticlassExtension.predict(x)

Applying multiple estimators for prediction.

Parameters

x (numpy.ndarray) – input points

set_estimator

MulticlassExtension.set_estimator(estimator_cls, params=None)

Called internally to set Estimator and parameters :type estimator_cls: Callable[[List], Estimator] :param estimator_cls: An Estimator class :type params: Optional[List] :param params: Parameters for the estimator

Return type

None

test

abstract MulticlassExtension.test(x, y)

Testing multiple estimators each for distinguishing a pair of classes.

Parameters

  • x (numpy.ndarray) – input points
  • y (numpy.ndarray) – input labels

train

abstract MulticlassExtension.train(x, y)

Training multiple estimators each for distinguishing a pair of classes.

Parameters

  • x (numpy.ndarray) – input points
  • y (numpy.ndarray) – input labels
Was this page helpful?
Report a bug or request content on GitHub.