Skip to content

Commit 3ccb9eb

Browse files
authored
DOC fix unknown link error in plot_unveil_tree_structure.py (scikit-learn#27399)
1 parent 61ba9bf commit 3ccb9eb

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

examples/tree/plot_unveil_tree_structure.py

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,15 @@
4444
#
4545
# The decision classifier has an attribute called ``tree_`` which allows access
4646
# to low level attributes such as ``node_count``, the total number of nodes,
47-
# and ``max_depth``, the maximal depth of the tree. The tree_.compute_node_depths()
48-
# method computes the depth of each node in the tree. `tree_` also stores the
49-
# entire binary tree structure, represented as a number of parallel arrays. The
50-
# i-th element of each array holds information about the node ``i``. Node 0 is
51-
# the tree's root. Some of the arrays only apply to either leaves or split
52-
# nodes. In this case the values of the nodes of the other type is arbitrary.
53-
# For example, the arrays ``feature`` and ``threshold`` only apply to split
54-
# nodes. The values for leaf nodes in these arrays are therefore arbitrary.
47+
# and ``max_depth``, the maximal depth of the tree. The
48+
# ``tree_.compute_node_depths()`` method computes the depth of each node in the
49+
# tree. `tree_` also stores the entire binary tree structure, represented as a
50+
# number of parallel arrays. The i-th element of each array holds information
51+
# about the node ``i``. Node 0 is the tree's root. Some of the arrays only
52+
# apply to either leaves or split nodes. In this case the values of the nodes
53+
# of the other type is arbitrary. For example, the arrays ``feature`` and
54+
# ``threshold`` only apply to split nodes. The values for leaf nodes in these
55+
# arrays are therefore arbitrary.
5556
#
5657
# Among these arrays, we have:
5758
#

0 commit comments

Comments
 (0)