Skip to content

Conversation

@jqnatividad
Copy link
Collaborator

  • also fixed n_pairs not being counted properly in the parallel path; it was counted properly in the sequential path.

resolves #3254

- also fixed n_pairs not being counted properly in the parallel path; it was counted properly in the sequential path.
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds normalized mutual information (NMI) as a 6th bivariate statistic to the moarstats command and fixes an n_pairs counting issue in the parallel path.

Key Changes:

  • Adds normalized mutual information (NMI) computation using the formula NMI = MI / sqrt(H(X) * H(Y))
  • Fixes n_pairs counting in the parallel execution path to use max of correlation_state.count and total_pairs
  • Updates documentation, help text, and error messages to include the new NMI statistic

Copy link
Contributor

Copilot AI commented Dec 31, 2025

@jqnatividad I've opened a new pull request, #3257, to work on those changes. Once the pull request is ready, I'll request review from you.

jqnatividad and others added 2 commits December 30, 2025 22:58
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@jqnatividad jqnatividad merged commit 8490974 into master Dec 31, 2025
11 of 12 checks passed
@jqnatividad jqnatividad deleted the 3254-moarstats-normalized-mutual-information branch December 31, 2025 04:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

moarstats: add normalized mutual information

2 participants