Skip to content

AdjustedMutualInfoScore mishandles perfect-match limit cases #3495

Description

@Robertboy18

I was comparing adjusted_mutual_info_score with scikit-learn and noticed three equivalent-partition limit cases disagree:

  • empty inputs raise during expected-MI reduction
  • two one-cluster labelings return 0
  • two relabeled singleton partitions return 0

scikit-learn returns 1.0 because the partitions are identical. This happens with every averaging method.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions