decision-tree-js icon indicating copy to clipboard operation
decision-tree-js copied to clipboard

Allow for root overwrite

Open s7726 opened this issue 6 years ago • 0 comments

https://github.com/lagodiuk/decision-tree-js/blob/91977780b71775802aacbc6e1a415bf6e7234965/decision-tree.js#L331

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.

s7726 avatar Jul 02 '19 23:07 s7726