qiskit.aqua.utils.map_label_to_class_name¶
-
map_label_to_class_name
(predicted_labels, label_to_class)[código fonte]¶ Helper converts labels (numeric) to class name (string)
- Parâmetros
predicted_labels (numpy.ndarray) – Nx1 array
label_to_class (dict or list) – a mapping form label (numeric) to class name (str)
- Retorna
predicted class names of each datum
- Tipo de retorno
str