iq_readout.two_state_classifiers.DecayLinearClassifier.predict#

two_state_classifiers.DecayLinearClassifier.predict(z, p_0=0.5)#

Classifies the given data to 0 or 1 using maximum-likelihood classification, which is defined by

  • 0 if \(p(0|z) > p(1|z)\)

  • 1 otherwise

Parameters:
znp.array(…, 2)

Points to classify.

p_0

Probability to measure outcome 0. By default 1/2, which in this case \(p(0|z) > p(1|z)\) is equivalent to \(p(z|0) > p(z|0)\).

Returns:
predictionnp.array(…)

Classification of the given data. It only contains 0s and 1s.