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

Various fixes for Hybrid #1369

Merged
merged 6 commits into from
Jan 4, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
enable previously failing test, now works!!
  • Loading branch information
varunagrawal committed Jan 4, 2023
commit bb31956a96c583cc5386c0e4cd595c13471569b3
5 changes: 1 addition & 4 deletions gtsam/hybrid/tests/testHybridEstimation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ TEST(HybridEstimation, Full) {

/****************************************************************************/
// Test approximate inference with an additional pruning step.
TEST_DISABLED(HybridEstimation, Incremental) {
TEST(HybridEstimation, Incremental) {
size_t K = 15;
std::vector<double> measurements = {0, 1, 2, 2, 2, 2, 3, 4, 5, 6, 6,
7, 8, 9, 9, 9, 10, 11, 11, 11, 11};
Expand Down Expand Up @@ -151,9 +151,6 @@ TEST_DISABLED(HybridEstimation, Incremental) {
graph.resize(0);
}

/*TODO(Varun) Gives degenerate result due to probability underflow.
Need to normalize probabilities.
*/
HybridValues delta = smoother.hybridBayesNet().optimize();

Values result = initial.retract(delta.continuous());
Expand Down