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 various tests for Hybrid #1220

Merged
merged 5 commits into from
Jun 10, 2022
Merged

Add various tests for Hybrid #1220

merged 5 commits into from
Jun 10, 2022

Conversation

varunagrawal
Copy link
Collaborator

I pulled all the tests from the previous hybrid mechanism and updated them so they work.

@varunagrawal varunagrawal self-assigned this Jun 7, 2022
Copy link
Collaborator

@ProfFan ProfFan left a comment

Choose a reason for hiding this comment

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

Great PR

using symbol_shorthand::X;

/* ************************************************************************* */
TEST(GaussianConditional, Equals) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

document the equations here (2 gaussians)

TestResult tr;
return TestRegistry::runAllTests(tr);
}
/* ************************************************************************* */
Copy link
Collaborator

Choose a reason for hiding this comment

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

newline


// TODO(Frank): why specify keys at all? And: keys in factor should be *all*
// keys, deviating from Kevin's scheme. Should we index DT on DiscreteKey?
// Design review!
Copy link
Collaborator

Choose a reason for hiding this comment

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

the DiscreteKey is probably a suboptimal design, since that killed the consistency of API. I would argue that maybe in GTSAM 5 we should have the discrete values hold their cardinalities...

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Can you write up an issue for this? We're definitely going to forget in the far future. 😅

@varunagrawal varunagrawal merged commit 784f16f into develop Jun 10, 2022
@varunagrawal varunagrawal deleted the hybrid/tests branch June 10, 2022 11:19
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