pairs_to_clusters#

er_evaluation.data_structures.pairs_to_clusters(pairs, indices)[source]#

Transform pairs list into clusters dictionary.

Parameters:
  • pairs (ndarray) – array of paired elements.

  • indices (ndarray) – flat array of all elements to consider (paired and non-paired), including singletons.