Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Binomial Regression Tests and Example Notebook #403

Merged
merged 9 commits into from
Jan 14, 2025

Conversation

ismailsenoz
Copy link

This PR adds testing and documentation for binomial regression functionality in RxInfer:

  • Add test suite for binomial regression including:

    • Synthetic data generation
    • Model specification with BinomialPolya factor node
    • Inference validation with coverage tests
  • Add Jupyter notebook example demonstrating:

    • Theoretical background of Bayesian binomial regression
    • Implementation using RxInfer
    • Visualization of posterior estimates
    • References to key papers (Polya-Gamma augmentation)

The tests verify proper convergence through free energy checks and parameter coverage analysis. The example notebook serves as both documentation and tutorial for users implementing binomial regression models.

@bvdmitri bvdmitri self-requested a review January 13, 2025 17:32
Copy link

codecov bot commented Jan 14, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.70%. Comparing base (f771180) to head (2891509).
Report is 10 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #403   +/-   ##
=======================================
  Coverage   84.70%   84.70%           
=======================================
  Files          19       19           
  Lines        1523     1523           
=======================================
  Hits         1290     1290           
  Misses        233      233           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@bvdmitri bvdmitri merged commit d8d97ae into main Jan 14, 2025
6 of 7 checks passed
@bvdmitri bvdmitri deleted the binomial_regression branch January 14, 2025 13:45
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.

2 participants