Unverified Commit 5f57d6c6 authored by Pablo Dávila Herrero's avatar Pablo Dávila Herrero Committed by GitHub
Browse files

[docs] Document behaviour of the first linear estimator (#5132)



* Document behaviour of the first linear estimator

* Properly update docs
Co-authored-by: default avatarPablo-Davila <Pablo-Davila@users.noreply.github.com>
parent b6cbfeec
...@@ -664,6 +664,8 @@ Dataset Parameters ...@@ -664,6 +664,8 @@ Dataset Parameters
- the linear model at each leaf includes all the numerical features in that leaf's branch - the linear model at each leaf includes all the numerical features in that leaf's branch
- the first tree has constant leaf values
- categorical features are used for splits as normal but are not used in the linear models - categorical features are used for splits as normal but are not used in the linear models
- missing values should not be encoded as ``0``. Use ``np.nan`` for Python, ``NA`` for the CLI, and ``NA``, ``NA_real_``, or ``NA_integer_`` for R - missing values should not be encoded as ``0``. Use ``np.nan`` for Python, ``NA`` for the CLI, and ``NA``, ``NA_real_``, or ``NA_integer_`` for R
......
...@@ -586,6 +586,7 @@ struct Config { ...@@ -586,6 +586,7 @@ struct Config {
// desc = fit piecewise linear gradient boosting tree // desc = fit piecewise linear gradient boosting tree
// descl2 = tree splits are chosen in the usual way, but the model at each leaf is linear instead of constant // descl2 = tree splits are chosen in the usual way, but the model at each leaf is linear instead of constant
// descl2 = the linear model at each leaf includes all the numerical features in that leaf's branch // descl2 = the linear model at each leaf includes all the numerical features in that leaf's branch
// descl2 = the first tree has constant leaf values
// descl2 = categorical features are used for splits as normal but are not used in the linear models // descl2 = categorical features are used for splits as normal but are not used in the linear models
// descl2 = missing values should not be encoded as ``0``. Use ``np.nan`` for Python, ``NA`` for the CLI, and ``NA``, ``NA_real_``, or ``NA_integer_`` for R // descl2 = missing values should not be encoded as ``0``. Use ``np.nan`` for Python, ``NA`` for the CLI, and ``NA``, ``NA_real_``, or ``NA_integer_`` for R
// descl2 = it is recommended to rescale data before training so that features have similar mean and standard deviation // descl2 = it is recommended to rescale data before training so that features have similar mean and standard deviation
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment