-
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] updates and improvements for documentation (#940)
* added python version badge * fixed typos * fixed links * readthedocs doesn't support links with anchor out of box * fixed table rendering at ReadTheDocs #776#issuecomment-319851551 * fixed table rendering at ReadTheDocs * added link to Key-Events page * fixed links * hotfix * fixed markdown
- Loading branch information
1 parent
8aef4bf
commit d292512
Showing
16 changed files
with
584 additions
and
502 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,34 @@ | ||
# Advanced Topics | ||
|
||
## Missing value handle | ||
## 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. | ||
* 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 | ||
## 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 a optimal split can provide the much better accuracy than one-hot coding solution. | ||
* Use `categorical_feature` to specific the categorical features. Refer to the parameter `categorical_feature` in [Parameters](./Parameters.md). | ||
* Need to convert to `int` type first, and only support non-negative numbers. It is better to convert into continues ranges. | ||
* 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.md). | ||
* 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 categocal features with high cardinality (#categoriy is large), it is better to convert it to numerical features. | ||
* For categorical features with high cardinality (#category is large), it is better to convert it to numerical features. | ||
|
||
## LambdaRank | ||
## LambdaRank | ||
|
||
* The label should be `int` type, and larger number represent the higher relevance (e.g. 0:bad, 1:fair, 2:good, 3:perfect). | ||
* 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.md). | ||
* Refer to [Parameters Tuning](./Parameters-tuning.md). | ||
|
||
## GPU support | ||
## GPU Support | ||
|
||
* Refer to [GPU Tutorial](./GPU-Tutorial.md) and [GPU Targets](./GPU-Targets.md). | ||
* Refer to [GPU Tutorial](./GPU-Tutorial.md) and [GPU Targets](./GPU-Targets.rst). | ||
|
||
## Parallel Learning | ||
## Parallel Learning | ||
|
||
* Refer to https://github.com/Microsoft/LightGBM/wiki/Parallel-Learning-Guide | ||
* Refer to [Parallel Learning Guide](https://github.com/Microsoft/LightGBM/wiki/Parallel-Learning-Guide). |
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.