You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/Parameters.rst
+14Lines changed: 14 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -675,6 +675,20 @@ Learning Control Parameters
675
675
676
676
- note that the parent output ``w_p`` itself has smoothing applied, unless it is the root node, so that the smoothing effect accumulates with the tree depth
677
677
678
+
- ``path_smooth_hessian`` :raw-html:`<aid="path_smooth_hessian"title="Permalink to this parameter"href="#path_smooth_hessian">🔗︎</a>`, default = ``0``, type = double, constraints: ``path_smooth_hessian >= 0.0``
679
+
680
+
- controls smoothing applied to tree nodes using the sum of hessians instead of the number of samples
681
+
682
+
- works the same way as ``path_smooth`` but uses the sum of hessians as the weight, making it more appropriate when samples have different weights
683
+
684
+
- has the same dimension as ``min_sum_hessian_in_leaf``
685
+
686
+
- cannot be used simultaneously with ``path_smooth``; set one to ``0`` when using the other
687
+
688
+
- the weight of each node is ``w * (h / path_smooth_hessian) / (h / path_smooth_hessian + 1) + w_p / (h / path_smooth_hessian + 1)``, where ``h`` is the sum of hessians in the node, ``w`` is the optimal node weight to minimise the loss (approximately ``-sum_gradients / sum_hessians``), and ``w_p`` is the weight of the parent node
689
+
690
+
- note that the parent output ``w_p`` itself has smoothing applied, unless it is the root node, so that the smoothing effect accumulates with the tree depth
691
+
678
692
- ``interaction_constraints`` :raw-html:`<aid="interaction_constraints"title="Permalink to this parameter"href="#interaction_constraints">🔗︎</a>`, default = ``""``, type = string
679
693
680
694
- controls which features can appear in the same branch
Copy file name to clipboardExpand all lines: include/LightGBM/config.h
+16Lines changed: 16 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -584,6 +584,15 @@ struct Config {
584
584
// descl2 = note that the parent output ``w_p`` itself has smoothing applied, unless it is the root node, so that the smoothing effect accumulates with the tree depth
585
585
double path_smooth = 0;
586
586
587
+
// check = >= 0.0
588
+
// desc = controls smoothing applied to tree nodes using the sum of hessians instead of the number of samples
589
+
// desc = works the same way as ``path_smooth`` but uses the sum of hessians as the weight, making it more appropriate when samples have different weights
590
+
// desc = has the same dimension as ``min_sum_hessian_in_leaf``
591
+
// desc = cannot be used simultaneously with ``path_smooth``; set one to ``0`` when using the other
592
+
// descl2 = the weight of each node is ``w * (h / path_smooth_hessian) / (h / path_smooth_hessian + 1) + w_p / (h / path_smooth_hessian + 1)``, where ``h`` is the sum of hessians in the node, ``w`` is the optimal node weight to minimise the loss (approximately ``-sum_gradients / sum_hessians``), and ``w_p`` is the weight of the parent node
593
+
// descl2 = note that the parent output ``w_p`` itself has smoothing applied, unless it is the root node, so that the smoothing effect accumulates with the tree depth
594
+
double path_smooth_hessian = 0;
595
+
587
596
// desc = controls which features can appear in the same branch
588
597
// desc = by default interaction constraints are disabled, to enable them you can specify
589
598
// descl2 = for CLI, lists separated by commas, e.g. ``[0,1,2],[2,3]``
0 commit comments