Writes each node information If it is a leaf node: show it in different color, show number of samples, show leaf id If it is a non-leaf node: show its splitting variable and splitting value
1 | create_dot_body(tree, index = 1)
|
tree |
the tree to convert |
index |
the index of the current node |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.