Note
This is the documentation for the current state of the development branch of Qiskit Experiments. The documentation or APIs here can change prior to being released.
SkQDA¶
- class SkQDA(qda)[source]¶
A wrapper for the SKlearn quadratic discriminant analysis.
Note
This class requires that scikit-learn is installed.
- Parameters:
qda (
QuadraticDiscriminantAnalysis
) – The sklearn quadratic discriminant analysis. This may be a trained or an untrained discriminator.- Raises:
DataProcessorError – If SKlearn could not be imported.
Attributes
Return then SKLearn object.
Methods
Return the configuration of the QDA.
SkQDA.fit
(data, labels)Fit the QDA.
SkQDA.from_config
(cls, config)Deserialize from an object.
Return True if the discriminator has been trained on data.
SkQDA.predict
(data)Wrap the predict method of the QDA.