Convert scikit-learn decision trees to JSON
SKLearn has a function to convert decision trees to “graphviz” (for rendering) but I find JSON more helpful, as you can read it more easily, as well as use it in web apps. The function below will give you JSON. The reason this is necessary (vs the JSON.dumps) library is that the Decision Tree interfaces …
Continue reading “Convert scikit-learn decision trees to JSON”