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

Improve the DiscreteFactorFromErrors #1867

Merged
merged 9 commits into from
Oct 10, 2024
Merged

Conversation

varunagrawal
Copy link
Collaborator

Added a new constructor to AlgebraicDecisionTree so we can reduce some boilerplate code.

Improved the docstring for DiscreteFactorFromErrors.

@varunagrawal varunagrawal self-assigned this Oct 9, 2024
@varunagrawal varunagrawal changed the base branch from feature/no_hiding to more-fixes October 9, 2024 19:48
Base automatically changed from more-fixes to feature/no_hiding October 9, 2024 22:59
Copy link
Member

@dellaert dellaert left a comment

Choose a reason for hiding this comment

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

Small nit on Func, but we can merge as is.

* the leaves of the input DecisionTree.
*/
template <typename X, typename Func>
AlgebraicDecisionTree(const DecisionTree<L, X>& other, Func f)
Copy link
Member

Choose a reason for hiding this comment

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

An ADT stores doubles, so ideally Func should be enforced to return a double. We can merge as is but any signature that does not will yield strange compilation errors.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Hmm I am not sure I know how to enforce that. :( I'll check later.

@dellaert
Copy link
Member

Please merge after merging no_hiding so this targets develop

Base automatically changed from feature/no_hiding to develop October 10, 2024 13:31
@varunagrawal varunagrawal merged commit 9a146eb into develop Oct 10, 2024
33 checks passed
@varunagrawal varunagrawal deleted the normalize-potentials branch October 10, 2024 14:26
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