-
Notifications
You must be signed in to change notification settings - Fork 773
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
HybridFactorGraph base class and other niceties #1221
Conversation
…ass of HybridFactor
Nonlinear Hybrid
Linear HybridBayesNet optimization
CI is failing |
That's because of the Ubuntu 18.04 brownout. Should work now. |
TestResult tr; | ||
return TestRegistry::runAllTests(tr); | ||
} | ||
/* ************************************************************************* */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
newline
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving sans two comments
using Base::add; | ||
|
||
/// Add a discrete conditional to the Bayes Net. | ||
void add(const DiscreteKey &key, const std::string &table) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not in favor of more helpers, do we have similar stuff in DiscreteBayesNet
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We'll need this since we need to wrap the DiscreteConditional
into a HybridConditional
.
TestResult tr; | ||
return TestRegistry::runAllTests(tr); | ||
} | ||
/* ************************************************************************* */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
newline
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hybrid Pruning
Made
HybridFactorGraph
a base class forHybridGaussianFactorGraph
and forHybridNonlinearFactorGraph
which will be added in a later PR. This way, the code is more DRY and mirrors the inheritance structure of the[Nonlinear|Gaussian]FactorGraph
classes.Refactored tests for
HybridGaussianFactorGraph
to make them much more descriptive and to actually test things.Also added tests and improvements to
HybridBayesNet
.