-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[docs] documentation improvement (#976)
* fixed typos and hotfixes * converted gcc-tips.Rmd; added ref to gcc-tips * renamed files * renamed Advanced-Topics * renamed README * renamed Parameters-Tuning * renamed FAQ * fixed refs to FAQ * fixed undecodable source characters * renamed Features * renamed Quick-Start * fixed undecodable source characters in Features * renamed Python-Intro * renamed GPU-Tutorial * renamed GPU-Windows * fixed markdown * fixed undecodable source characters in GPU-Windows * renamed Parameters * fixed markdown * removed recommonmark dependence * hotfixes * added anchors to links * fixed 404 * fixed typos * added more anchors * removed sphinxcontrib-napoleon dependence * removed outdated line in Travis config * fixed max-width of the ReadTheDocs theme * added horizontal align to images
- Loading branch information
1 parent
12257fe
commit 4aa3296
Showing
43 changed files
with
2,691 additions
and
1,901 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
Advanced Topics | ||
=============== | ||
|
||
Missing Value Handle | ||
-------------------- | ||
|
||
- LightGBM enables the missing value handle by default, you can disable it by set ``use_missing=false``. | ||
|
||
- LightGBM uses NA (NaN) to represent the missing value by default, you can change it to use zero by set ``zero_as_missing=true``. | ||
|
||
- When ``zero_as_missing=false`` (default), the unshown value in sparse matrices (and LightSVM) is treated as zeros. | ||
|
||
- When ``zero_as_missing=true``, NA and zeros (including unshown value in sparse matrices (and LightSVM)) are treated as missing. | ||
|
||
Categorical Feature Support | ||
--------------------------- | ||
|
||
- LightGBM can offer a good accuracy when using native categorical features. Not like simply one-hot coding, LightGBM can find the optimal split of categorical features. | ||
Such an optimal split can provide the much better accuracy than one-hot coding solution. | ||
|
||
- Use ``categorical_feature`` to specify the categorical features. | ||
Refer to the parameter ``categorical_feature`` in `Parameters <./Parameters.rst>`__. | ||
|
||
- Converting to ``int`` type is needed first, and there is support for non-negative numbers only. | ||
It is better to convert into continues ranges. | ||
|
||
- Use ``max_cat_group``, ``cat_smooth_ratio`` to deal with over-fitting | ||
(when ``#data`` is small or ``#category`` is large). | ||
|
||
- For categorical features with high cardinality (``#category`` is large), it is better to convert it to numerical features. | ||
|
||
LambdaRank | ||
---------- | ||
|
||
- The label should be ``int`` type, and larger numbers represent the higher relevance (e.g. 0:bad, 1:fair, 2:good, 3:perfect). | ||
|
||
- Use ``label_gain`` to set the gain(weight) of ``int`` label. | ||
|
||
- Use ``max_position`` to set the NDCG optimization position. | ||
|
||
Parameters Tuning | ||
----------------- | ||
|
||
- Refer to `Parameters Tuning <./Parameters-Tuning.rst>`__. | ||
|
||
Parallel Learning | ||
----------------- | ||
|
||
- Refer to `Parallel Learning Guide <./Parallel-Learning-Guide.rst>`__. | ||
|
||
GPU Support | ||
----------- | ||
|
||
- Refer to `GPU Tutorial <./GPU-Tutorial.rst>`__ and `GPU Targets <./GPU-Targets.rst>`__. | ||
|
||
Recommendations for gcc Users (MinGW, \*nix) | ||
-------------------------------------------- | ||
|
||
- Refer to `gcc Tips <./gcc-Tips.rst>`__. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.