German
Sprachen
English
Japanese
German
Korean
Portuguese, Brazilian
French
Shortcuts

qiskit.aqua.utils.map_label_to_class_name

map_label_to_class_name(predicted_labels, label_to_class)[Quellcode]

Helper converts labels (numeric) to class name (string)

Parameter
  • predicted_labels (numpy.ndarray) – Nx1 array

  • label_to_class (dict or list) – a mapping form label (numeric) to class name (str)

Rückgabe

predicted class names of each datum

Rückgabetyp

str