French
Langues
English
Japanese
German
Korean
Portuguese, Brazilian
French
Shortcuts

qiskit.aqua.components.multiclass_extensions.MulticlassExtension

class MulticlassExtension[source]

Base class for multiclass extension.

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

abstract __init__()[source]

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.

abstract predict(x)[source]

Applying multiple estimators for prediction.

Paramètres

x (numpy.ndarray) – input points

set_estimator(estimator_cls, params=None)[source]

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

Type renvoyé

None

abstract test(x, y)[source]

Testing multiple estimators each for distinguishing a pair of classes.

Paramètres
  • x (numpy.ndarray) – input points

  • y (numpy.ndarray) – input labels

abstract train(x, y)[source]

Training multiple estimators each for distinguishing a pair of classes.

Paramètres
  • x (numpy.ndarray) – input points

  • y (numpy.ndarray) – input labels