gyrdym / ml_algo

Machine learning algorithms in Dart programming language
https://gyrdym.github.io/ml_algo/
BSD 2-Clause "Simplified" License
183 stars 33 forks source link

Path down decision tree #244

Open elioBen opened 2 years ago

elioBen commented 2 years ago

Is there a way to get the path down the tree for a prediction from the decision tree? I can import the implementation, copy/paste the predict method and add nodes to a list, but that's not ideal.

gyrdym commented 2 years ago

@elioBen Hi!

Thank you for creating the issue. There is no such a path right now, but it can be useful, I will consider adding this feature to the DecisionTreeClassifier.