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

Improve documentation and error handling Mixture node #446

Merged
merged 5 commits into from
Feb 4, 2025
Merged

Conversation

bartvanerp
Copy link
Member

This pull request includes minor changes to the src/addons/logscale.jl and src/nodes/predefined/mixture.jl files to enhance error messaging and documentation. The most important changes include adding a more detailed error message for missing log-scale addons and providing comprehensive documentation for the MixtureNode struct.

Enhancements to error messaging:

  • src/addons/logscale.jl: Added a detailed error message for cases where the log-scale addon is not available, guiding users to include AddonLogScale in the addons.

Improvements to documentation:

  • src/nodes/predefined/mixture.jl: Added extensive documentation for the MixtureNode{N} struct, including a description of its interfaces, an example usage, and a note on the requirement of the AddonLogScale addon.

@bartvanerp bartvanerp requested a review from Nimrais February 3, 2025 14:19
@bartvanerp bartvanerp linked an issue Feb 3, 2025 that may be closed by this pull request
Copy link

codecov bot commented Feb 3, 2025

Codecov Report

Attention: Patch coverage is 50.00000% with 1 line in your changes missing coverage. Please review.

Project coverage is 73.59%. Comparing base (630acaf) to head (1b7d8f2).
Report is 12 commits behind head on main.

Files with missing lines Patch % Lines
src/addons/logscale.jl 50.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main     #446   +/-   ##
=======================================
  Coverage   73.59%   73.59%           
=======================================
  Files         195      195           
  Lines        5593     5594    +1     
=======================================
+ Hits         4116     4117    +1     
  Misses       1477     1477           

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

Copy link
Member

@bvdmitri bvdmitri left a comment

Choose a reason for hiding this comment

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

Left some comments, I think we should be explicit about RxInfer.jl when we bring things like @model macro, because it doesn't exist in ReactiveMP.jl

src/nodes/predefined/mixture.jl Outdated Show resolved Hide resolved
src/nodes/predefined/mixture.jl Outdated Show resolved Hide resolved
@bartvanerp bartvanerp requested a review from bvdmitri February 4, 2025 16:45
@bvdmitri bvdmitri merged commit 401a0d8 into main Feb 4, 2025
9 of 10 checks passed
@bvdmitri bvdmitri deleted the fix-444 branch February 4, 2025 18:01
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.

Improve documentation and error handling mixture node
3 participants