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.

qiskit.aqua.components.multiclass_extensions.MulticlassExtension

class MulticlassExtension

GitHub

Base class for multiclass extension.

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

__init__

abstract __init__()

Initialize self. See help(type(self)) for accurate signature.


Methods

__init__()Initialize self.
predict(x)Applying multiple estimators for prediction.
set_estimator(estimator_cls[, params])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
test(x, y)Testing multiple estimators each for distinguishing a pair of classes.
train(x, y)Training multiple estimators each for distinguishing a pair of classes.

predict

abstract predict(x)

Applying multiple estimators for prediction.

Parameters

x (numpy.ndarray) – input points

set_estimator

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 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 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.