# qiskit.ignis.measurement.SklearnIQDiscriminator.get_ydata¶

SklearnIQDiscriminator.get_ydata(results, schedule_type_to_get, schedules=None)

Retrieves the expected states (ydata) for the discriminator.

Parameters
• results (Union[Result, List[Result]]) – results for which to retrieve the y data (i.e. expected states).

• schedule_type_to_get (int) – use to specify if we should return data corresponding to * 0 calibration data only * 1 non-calibration data * 2 both calibration and non-calibration data

• schedules (Union[List[str], List[Schedule], None]) – Either the names of the schedules or the schedules themselves.

Returns

The y data, i.e. expected states. get_ydata is designed to produce

y data with the same length as the x data.

Return type

list