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

DecisionTree refactor #1000

Merged
merged 27 commits into from
Jan 3, 2022
Merged

DecisionTree refactor #1000

merged 27 commits into from
Jan 3, 2022

Conversation

dellaert
Copy link
Member

@dellaert dellaert commented Jan 2, 2022

For hybrid elimination, we need DecisionTree to be more powerful.

  • Previously there was a restriction to values that could be printed using <<. This PR adds label formatters (done previously in a branch by Varun) and value formatters (by me, here).
  • In addition, equals no longer takes a tolerance, but a compare function.
  • DT is no longer Testable, but AlgebraicDecisionTree is.

@dellaert dellaert self-assigned this Jan 2, 2022
@dellaert dellaert requested a review from ProfFan January 2, 2022 23:13
@dellaert dellaert removed the request for review from ProfFan January 3, 2022 03:31
Copy link
Collaborator

@varunagrawal varunagrawal left a comment

Choose a reason for hiding this comment

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

LGTM, though hold up on merging since I'll add docstrings and other stuff addressing my comments in a separate PR targeting this PR.

gtsam/discrete/AlgebraicDecisionTree.h Show resolved Hide resolved
gtsam/discrete/DecisionTree-inl.h Show resolved Hide resolved
gtsam/discrete/tests/testDecisionTree.cpp Outdated Show resolved Hide resolved
gtsam/discrete/AlgebraicDecisionTree.h Show resolved Hide resolved
@dellaert dellaert changed the title fix decision tree equality and move default constructor to public DecisionTree refactor Jan 3, 2022
Base automatically changed from feature/deprecate_in_v42 to develop January 3, 2022 19:16
@dellaert dellaert merged commit 1574227 into develop Jan 3, 2022
@dellaert dellaert deleted the feature/decison_tree branch January 3, 2022 22:58
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