Skip to content

[codex] Add numerical circular KL divergence#1868

Merged
FlorianPfaff merged 2 commits intomainfrom
codex/add-circular-kld-numerical
Apr 25, 2026
Merged

[codex] Add numerical circular KL divergence#1868
FlorianPfaff merged 2 commits intomainfrom
codex/add-circular-kld-numerical

Conversation

@FlorianPfaff
Copy link
Copy Markdown
Owner

Summary

  • Add AbstractCircularDistribution.kld_numerical(other) for numerical Kullback-Leibler divergence over the circular domain.
  • Cover the new method with circular distribution tests for zero self-divergence and KL(VonMises || uniform) against the entropy identity.

Validation

  • Inspected the generated diff through the GitHub API.
  • Local test execution was not available in this read-only workspace; CI should run on the PR branch.

@FlorianPfaff FlorianPfaff marked this pull request as ready for review April 25, 2026 09:54
@FlorianPfaff FlorianPfaff enabled auto-merge (squash) April 25, 2026 09:57
@github-actions
Copy link
Copy Markdown
Contributor

MegaLinter analysis: Success

Descriptor Linter Files Fixed Errors Warnings Elapsed time
✅ COPYPASTE jscpd yes no no 11.23s
✅ JSON prettier 2 0 0 0 0.41s
✅ JSON v8r 2 0 0 2.4s
✅ MARKDOWN markdownlint 2 0 0 0 0.68s
✅ MARKDOWN markdown-table-formatter 2 0 0 0 0.24s
✅ PYTHON bandit 385 0 0 5.54s
✅ PYTHON black 385 4 0 0 7.92s
✅ PYTHON flake8 385 0 0 2.96s
✅ PYTHON isort 385 5 0 0 0.73s
✅ PYTHON mypy 385 0 0 5.13s
✅ PYTHON pylint 385 0 0 120.62s
✅ PYTHON ruff 385 5 0 0 0.07s
✅ REPOSITORY checkov yes no no 24.53s
✅ REPOSITORY gitleaks yes no no 6.8s
✅ REPOSITORY git_diff yes no no 0.03s
✅ REPOSITORY secretlint yes no no 7.39s
✅ REPOSITORY syft yes no no 3.32s
✅ REPOSITORY trivy-sbom yes no no 2.32s
✅ REPOSITORY trufflehog yes no no 19.37s
✅ YAML prettier 4 0 0 0 0.44s
✅ YAML v8r 4 0 0 4.65s
✅ YAML yamllint 4 0 0 0.46s

See detailed reports in MegaLinter artifacts

Your project could benefit from a custom flavor, which would allow you to run only the linters you need, and thus improve runtime performances. (Skip this info by defining FLAVOR_SUGGESTIONS: false)

  • Documentation: Custom Flavors
  • Command: npx mega-linter-runner@9.4.0 --custom-flavor-setup --custom-flavor-linters PYTHON_PYLINT,PYTHON_BLACK,PYTHON_FLAKE8,PYTHON_ISORT,PYTHON_BANDIT,PYTHON_MYPY,PYTHON_RUFF,COPYPASTE_JSCPD,JSON_V8R,JSON_PRETTIER,MARKDOWN_MARKDOWNLINT,MARKDOWN_MARKDOWN_TABLE_FORMATTER,REPOSITORY_CHECKOV,REPOSITORY_GIT_DIFF,REPOSITORY_GITLEAKS,REPOSITORY_SECRETLINT,REPOSITORY_SYFT,REPOSITORY_TRIVY_SBOM,REPOSITORY_TRUFFLEHOG,YAML_PRETTIER,YAML_YAMLLINT,YAML_V8R

MegaLinter is graciously provided by OX Security
Show us your support by starring ⭐ the repository

@FlorianPfaff FlorianPfaff merged commit 77c514c into main Apr 25, 2026
17 checks passed
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.

1 participant