NNSOM.utils.get_ind_misclassified

NNSOM.utils.get_ind_misclassified(target, prediction)[source]

Return indices of misclassified samples.

Parameters:
  • target (array-like, shape (N,)) – True class labels.

  • prediction (array-like, shape (N,)) – Predicted class labels.

Returns:

misclassified_indices – Indices where target != prediction.

Return type:

np.ndarray of int