@@ -589,11 +589,11 @@ class DecisionTreeClassifier(ClassifierMixin, BaseDecisionTree):
589589
590590 Parameters
591591 ----------
592- criterion : string , optional (default="gini")
592+ criterion : str , optional (default="gini")
593593 The function to measure the quality of a split. Supported criteria are
594594 "gini" for the Gini impurity and "entropy" for the information gain.
595595
596- splitter : string , optional (default="best")
596+ splitter : str , optional (default="best")
597597 The strategy used to choose the split at each node. Supported
598598 strategies are "best" to choose the best split and "random" to choose
599599 the best random split.
@@ -634,7 +634,7 @@ class DecisionTreeClassifier(ClassifierMixin, BaseDecisionTree):
634634 the input samples) required to be at a leaf node. Samples have
635635 equal weight when sample_weight is not provided.
636636
637- max_features : int, float, string or None, optional (default=None)
637+ max_features : int, float, str or None, optional (default=None)
638638 The number of features to consider when looking for the best split:
639639
640640 - If int, then consider `max_features` features at each split.
@@ -679,7 +679,7 @@ class DecisionTreeClassifier(ClassifierMixin, BaseDecisionTree):
679679
680680 .. versionadded:: 0.19
681681
682- min_impurity_split : float, ( default=1e-7)
682+ min_impurity_split : float, default=1e-7
683683 Threshold for early stopping in tree growth. A node will split
684684 if its impurity is above the threshold, otherwise it is a leaf.
685685
@@ -713,7 +713,7 @@ class DecisionTreeClassifier(ClassifierMixin, BaseDecisionTree):
713713 presort : deprecated, default='deprecated'
714714 This parameter is deprecated and will be removed in v0.24.
715715
716- .. deprecated :: 0.22
716+ .. deprecated:: 0.22
717717
718718 ccp_alpha : non-negative float, optional (default=0.0)
719719 Complexity parameter used for Minimal Cost-Complexity Pruning. The
@@ -755,6 +755,10 @@ class DecisionTreeClassifier(ClassifierMixin, BaseDecisionTree):
755755 :ref:`sphx_glr_auto_examples_tree_plot_unveil_tree_structure.py`
756756 for basic usage of these attributes.
757757
758+ See Also
759+ --------
760+ DecisionTreeRegressor : A decision tree regressor.
761+
758762 Notes
759763 -----
760764 The default values for the parameters controlling the size of the trees
@@ -770,10 +774,6 @@ class DecisionTreeClassifier(ClassifierMixin, BaseDecisionTree):
770774 split. To obtain a deterministic behaviour during fitting,
771775 ``random_state`` has to be fixed.
772776
773- See also
774- --------
775- DecisionTreeRegressor
776-
777777 References
778778 ----------
779779
@@ -1073,7 +1073,7 @@ class DecisionTreeRegressor(RegressorMixin, BaseDecisionTree):
10731073 presort : deprecated, default='deprecated'
10741074 This parameter is deprecated and will be removed in v0.24.
10751075
1076- .. deprecated :: 0.22
1076+ .. deprecated:: 0.22
10771077
10781078 ccp_alpha : non-negative float, optional (default=0.0)
10791079 Complexity parameter used for Minimal Cost-Complexity Pruning. The
0 commit comments