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

Finish inference_gendb. #220

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open

Conversation

emilyfertig
Copy link
Collaborator

No description provided.

cxx/gendb.hh Outdated
@@ -220,7 +225,8 @@ class GenDB {
// This data structure contains entity sets and linkages. Semantics are
// map<tuple<class_name, reference_field_name, class_primary_key> ref_val>>,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Update comment.

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.

GenDB gendb(&prng, schema);
setup_gendb(&prng, gendb, 20);
gendb.transition_reference_class_and_ancestors(&prng, "Record");
}
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 one or more BOOST_TEST's as to the state of the gendb at this point.

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.

cxx/inference.cc Outdated
inference_hirm(prng, gendb->hirm, iters, timeout, verbose);
gendb->transition_reference_class_and_ancestors(
Copy link
Collaborator

Choose a reason for hiding this comment

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

This will do iters iterations of hirm training, followed by a single pass of entity transitions. I don't think that's what we want.

Rather, we probably want to add a parameter for specifying how many iterations of normal hirm training to run between entity transitions, and then use that to control the relative frequencies.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Oops, thank you.

@emilyfertig
Copy link
Collaborator Author

I have another debugging PR that needs to go in by tomorrow so I'm going to merge this and the other PR in the next couple hours (the command-line options could be more fully fleshed out, but I'm fine with leaving that to future maintainers to decide what they want to do there).

@emilyfertig emilyfertig force-pushed the 093024-emilyaf-inference_gendb branch from e9e5ce8 to 7aecc4b Compare October 3, 2024 22:08
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