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

discriminator

Return then SKLearn object.

Methods

config()[source]

Return the configuration of the QDA.

Return type:

Dict[str, Any]

fit(data, labels)[source]

Fit the QDA.

Parameters:
  • data (List) – The independent data.

  • labels (List) – The labels corresponding to data.

classmethod from_config(config)[source]

Deserialize from an object.

Return type:

SkQDA

is_trained()[source]

Return True if the discriminator has been trained on data.

Return type:

bool

predict(data)[source]

Wrap the predict method of the QDA.