Skip to content

Commit bcc6aa2

Browse files
committed
Pushing the docs to dev/ for branch: main, commit 2e3abc2e32eefbfea78f15bcc767ca9bb4911568
1 parent c13209c commit bcc6aa2

File tree

1,234 files changed

+4244
-4244
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,234 files changed

+4244
-4244
lines changed
Binary file not shown.

dev/_downloads/21a6ff17ef2837fe1cd49e63223a368d/plot_unveil_tree_structure.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
# node
6161
# - ``feature[i]``: feature used for splitting node ``i``
6262
# - ``threshold[i]``: threshold value at node ``i``
63-
# - ``n_node_samples[i]``: the number of of training samples reaching node
63+
# - ``n_node_samples[i]``: the number of training samples reaching node
6464
# ``i``
6565
# - ``impurity[i]``: the impurity at node ``i``
6666
#
Binary file not shown.

dev/_downloads/f7a387851c5762610f4e8197e52bbbca/plot_unveil_tree_structure.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
"cell_type": "markdown",
5252
"metadata": {},
5353
"source": [
54-
"## Tree structure\n\nThe decision classifier has an attribute called ``tree_`` which allows access\nto low level attributes such as ``node_count``, the total number of nodes,\nand ``max_depth``, the maximal depth of the tree. It also stores the\nentire binary tree structure, represented as a number of parallel arrays. The\ni-th element of each array holds information about the node ``i``. Node 0 is\nthe tree's root. Some of the arrays only apply to either leaves or split\nnodes. In this case the values of the nodes of the other type is arbitrary.\nFor example, the arrays ``feature`` and ``threshold`` only apply to split\nnodes. The values for leaf nodes in these arrays are therefore arbitrary.\n\nAmong these arrays, we have:\n\n - ``children_left[i]``: id of the left child of node ``i`` or -1 if leaf\n node\n - ``children_right[i]``: id of the right child of node ``i`` or -1 if leaf\n node\n - ``feature[i]``: feature used for splitting node ``i``\n - ``threshold[i]``: threshold value at node ``i``\n - ``n_node_samples[i]``: the number of of training samples reaching node\n ``i``\n - ``impurity[i]``: the impurity at node ``i``\n\nUsing the arrays, we can traverse the tree structure to compute various\nproperties. Below, we will compute the depth of each node and whether or not\nit is a leaf.\n\n"
54+
"## Tree structure\n\nThe decision classifier has an attribute called ``tree_`` which allows access\nto low level attributes such as ``node_count``, the total number of nodes,\nand ``max_depth``, the maximal depth of the tree. It also stores the\nentire binary tree structure, represented as a number of parallel arrays. The\ni-th element of each array holds information about the node ``i``. Node 0 is\nthe tree's root. Some of the arrays only apply to either leaves or split\nnodes. In this case the values of the nodes of the other type is arbitrary.\nFor example, the arrays ``feature`` and ``threshold`` only apply to split\nnodes. The values for leaf nodes in these arrays are therefore arbitrary.\n\nAmong these arrays, we have:\n\n - ``children_left[i]``: id of the left child of node ``i`` or -1 if leaf\n node\n - ``children_right[i]``: id of the right child of node ``i`` or -1 if leaf\n node\n - ``feature[i]``: feature used for splitting node ``i``\n - ``threshold[i]``: threshold value at node ``i``\n - ``n_node_samples[i]``: the number of training samples reaching node\n ``i``\n - ``impurity[i]``: the impurity at node ``i``\n\nUsing the arrays, we can traverse the tree structure to compute various\nproperties. Below, we will compute the depth of each node and whether or not\nit is a leaf.\n\n"
5555
]
5656
},
5757
{

dev/_downloads/scikit-learn-docs.zip

416 Bytes
Binary file not shown.
185 Bytes
-60 Bytes
174 Bytes
76 Bytes
216 Bytes

0 commit comments

Comments
 (0)