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

Allow for root overwrite #2

Open
s7726 opened this issue Jul 2, 2019 · 0 comments
Open

Allow for root overwrite #2

s7726 opened this issue Jul 2, 2019 · 0 comments

Comments

@s7726
Copy link

s7726 commented Jul 2, 2019

predicate = tree.predicate;

Please change this line to:
predicate = predicates[tree.predicateName];

This single line change enables using a pre-saved root by setting decisionTree.root = savedRoot

Would be nice to add additional functionality to save the root as well as build a dt object without input data.

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

No branches or pull requests

1 participant