NNSOM.utils.get_conf_indices
- NNSOM.utils.get_conf_indices(target, results, target_class)[source]
Return TP, TN, FP, FN indices for a given class in a binary sense.
- Parameters:
target (array-like, shape (N,)) – True class labels.
results (array-like, shape (N,)) – Predicted class labels.
target_class (int) – The class label treated as the positive class.
- Returns:
tp_index (np.ndarray of int) – Indices of True Positives.
tn_index (np.ndarray of int) – Indices of True Negatives.
fp_index (np.ndarray of int) – Indices of False Positives.
fn_index (np.ndarray of int) – Indices of False Negatives.