Skip to main content
Ctrl+K
⭐ Star on Github 🎤 Give Feedback

ER-Evaluation's Documentation

Site Navigation

  • README
  • User Guide
  • Examples
  • API Doc
  • Credits
  • GitHub

Site Navigation

  • README
  • User Guide
  • Examples
  • API Doc
  • Credits
  • GitHub

Section Navigation

  • All Functions
  • er_evaluation.data_structures
  • er_evaluation.datasets
  • er_evaluation.error_analysis
  • er_evaluation.estimators
  • er_evaluation.metrics
  • er_evaluation.plots
  • er_evaluation.summary
    • average_cluster_size
    • cluster_hill_number
    • cluster_sizes
    • cluster_sizes_distribution
    • homonymy_rate
    • matching_rate
    • name_variation_rate
    • number_of_clusters
    • number_of_links
    • summary_statistics
  • er_evaluation.search
  • er_evaluation.utils
  • API Doc
  • er_evaluation.summary
  • number_of_links

number_of_links#

er_evaluation.summary.number_of_links(membership)[source]#

Number of pairwise links associated with a given clustering.

Parameters:

membership (Series) – Membership vector representation of a clustering.

Returns:

Number of pairs of elements belonging to the same cluster. Note that clusters identified by NA values are excluded.

Return type:

int

Examples

>>> membership = pd.Series(index=[1,2,3,4,5,6,7,8], data=[1,1,2,3,2,4,4,4])
>>> number_of_links(membership)
5.0

previous

number_of_clusters

next

summary_statistics

Show Source

© Copyright 2023, Olivier Binette.

Built with the PyData Sphinx Theme 0.14.4.