Skip to content

[docs] unify language and make small improvements in some param descriptions - #6618

Merged
jameslamb merged 8 commits into
masterfrom
docs/params
Aug 27, 2024
Merged

jameslamb merged 8 commits into
masterfrom
docs/params

Conversation

@StrikerRUS

Copy link
Copy Markdown
Collaborator

No description provided.

@StrikerRUS StrikerRUS added the doc label Aug 17, 2024
Comment thread include/LightGBM/config.h
// descl2 = ``custom``
// descl2 = **Note**: Not supported in CLI version
// descl2 = must be passed through parameters explicitly in the C API
// descl2 = **Note**: cannot be used in CLI version

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Similarly to config, task, data and others

Comment thread include/LightGBM/config.h
// desc = controls smoothing applied to tree nodes
// desc = helps prevent overfitting on leaves with few samples
// desc = if set to zero, no smoothing is applied
// desc = if ``0.0`` (the default), no smoothing is applied

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment thread include/LightGBM/config.h
// desc = with quantized training, most arithmetics in the training process will be integer operations
// desc = gradient quantization can accelerate training, with little accuracy drop in most cases
// desc = **Note**: can be used only with ``device_type = cpu`` and ``device_type=cuda``
// desc = **Note**: works only with ``cpu`` and ``cuda`` device type

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"can be used only ..." for something that is not supposed to work in other environments at all, "Note: works only ..." for something that is supposed to work in other environments but currently doesn't work (not implemented yet).

@StrikerRUS
StrikerRUS marked this pull request as ready for review August 18, 2024 21:41

@jameslamb jameslamb left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Totally support these changes, thank you for this!

I left one small suggestion, but leaving an "Approve" review so you can merge this whenever you want. If you disagree with my suggestion, it's ok to leave this as-is... I don't feel strongly about it.

Comment thread include/LightGBM/config.h Resolved
Comment thread include/LightGBM/config.h Outdated
// check = >0
// desc = used only with ``cuda`` device type
// desc = number of GPUs
// desc = **Note**: can be used only in CUDA implementation

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

similar to the comment on gpu_use_dp, what do you think about combining two lines here? So we'd have:

  // desc = **Note**: can be used only in CUDA implementation (``device_type="cuda"``)

@jameslamb
jameslamb merged commit a9df7f1 into master Aug 27, 2024
@jameslamb
jameslamb deleted the docs/params branch August 27, 2024 02:52
@jameslamb

Copy link
Copy Markdown
Member

Thanks very much for your attention to detail 😁

@github-actions

Copy link
Copy Markdown
Contributor

This pull request has been automatically locked since there has not been any recent activity since it was closed.
To start a new related discussion, open a new issue at https://github.com/microsoft/LightGBM/issues including a reference to this.

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Aug 28, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants