decision-tree-js
                                
                                
                                
                                    decision-tree-js copied to clipboard
                            
                            
                            
                        Allow for root overwrite
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.