-
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
Improve the DiscreteFactorFromErrors
#1867
Conversation
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.
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) |
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.
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.
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.
Hmm I am not sure I know how to enforce that. :( I'll check later.
Please merge after merging no_hiding so this targets develop |
Added a new constructor to
AlgebraicDecisionTree
so we can reduce some boilerplate code.Improved the docstring for
DiscreteFactorFromErrors
.