iq_readout.two_state_classifiers.MaxFidLinearClassifier.predict#
- two_state_classifiers.MaxFidLinearClassifier.predict(z, p_0=0.5)#
Classifies the given data to 0 or 1 using a threshold: - 0 if z_proj <= threshold - 1 otherwise
- Parameters:
- z: np.array(…, 2)
Points to classify
- p_0
Probability to measure outcome 0. By default 1/2.
- Returns:
- prediction: np.array(…)
Classification of the given data. It only contains 0s and 1s.