maxfuse.metrics.get_foscttm

maxfuse.metrics.get_foscttm(dist, true_matching='identity')[source]

Compute the fraction of samples closer than true match.

Parameters:
  • dist (np.ndarray of shape (n1, n2)) – Distance matrix.

  • true_matching ('identity' or Iterable of length n1, default='identity') – If is a list, then the ground truth matched pairs are (i, true_matching[i]) If is ‘identity’, then true_matching = [0, 1…, n1].

Returns:

The fraction of samples closer than true match.