iq_readout.three_state_classifiers.GaussMixClassifier#
- class GaussMixClassifier(params)[source]#
Read gmda.md and ThreeStateClassifier documentation
- __init__(params)#
Loads params to this
ThreeStateClassifier.- Parameters:
- params
The structure of the dictionary must be
{ 0: {"param1": float, ...}, 1: {"param1": float, ...}, 2: {"param1": float, ...}, }
Methods
fit(shots_0, shots_1, shots_2[, n_bins])Fits the given data to extract the best parameters for classification.
from_yaml(filename)Load ThreeStateClassifier from YAML file.
pdf_0(z)Returns \(p(z|0)\).
pdf_1(z)Returns \(p(z|1)\).
pdf_2(z)Returns \(p(z|2)\).
predict(z[, p_0, p_1])Classifies the given data to 0, 1 or 2 using maximum-likelihood classification, which is defined by
to_yaml(filename)Stores parameters in a YAML file.
Attributes
Returns the parameters required to set up the classifier.
Returns dictionary with general statistical data: