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 a sampling method to HIRM. #154

Merged
merged 3 commits into from
Aug 13, 2024
Merged

Conversation

emilyfertig
Copy link
Collaborator

I added incorporate_sample to Relation instead of taking care of everything in HIRM in anticipation of it being useful for our eventual HIRM/PClean hybrid that will enforce a unique-valued index domain in samples as well.

@emilyfertig
Copy link
Collaborator Author

Fixes #125

@@ -65,6 +65,11 @@ class HIRM {

double logp_score() const;

Copy link
Collaborator

Choose a reason for hiding this comment

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

Please add brief descriptions of these methods.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done.


virtual void incorporate_to_cluster(const T_items& items, const ValueType& value) = 0;
virtual void incorporate_sample(std::mt19937* prng, const T_items& items) = 0;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please add a description of this new method.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done.

@emilyfertig emilyfertig merged commit 5eb0ffd into master Aug 13, 2024
1 of 2 checks passed
@emilyfertig emilyfertig deleted the 080124-emilyaf-sample-hirm branch August 13, 2024 18:06
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