iq_readout.three_state_classifiers.GaussMixClassifier.predict#
- three_state_classifiers.GaussMixClassifier.predict(z, p_0=0.3333333333333333, p_1=0.3333333333333333)#
Classifies the given data to 0, 1 or 2 using maximum-likelihood classification, which is defined by
0 if \(p(0|z) > p(1|z), p(2|z)\)
1 if \(p(1|z) > p(0|z), p(2|z)\)
2 otherwise
- Parameters:
- znp.array(…, 2)
Points to classify.
- p_0
Probability to measure outcome 0.
- p_1
Probability to measure outcome 1.
- By default :math:`p_0=p_1=1/3`, thus using :math:`p(i|z)` is equivalent
- to using :math:`p(z|i)`.
- Returns:
- predictionnp.array(…)
Classification of the given data. It only contains 0s, 1s, and 2s.