Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[R-package] remove unnecessary comments and fix typos in comments #4902

Merged
merged 1 commit into from
Dec 22, 2021

Conversation

jameslamb
Copy link
Collaborator

I've been looking more closely at the R package recently, and noticed a few comments that are either uninformative or provide typos. This PR proposes cleaning them up.

@@ -550,7 +550,7 @@ lgb.stratified.folds <- function(y, k) {

## Create a vector of integers from 1:k as many times as possible without
## going over the number of samples in the class. Note that if the number
## of samples in a class is less than k, nothing is producd here.
## of samples in a class is less than k, nothing is produced here.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Just out of my curiosity, why double ## here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

no reason at all! According to the git blame, these lines were added 5 years ago

https://github.com/microsoft/LightGBM/blame/0df38106b48161e12204de5621e406cc6c19a3e6/R-package/R/lgb.cv.R#L512-L519

I'd support a PR changing them (and other instances like this) to a single #

Copy link
Collaborator

Choose a reason for hiding this comment

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

OK, got it! 🙂

@StrikerRUS StrikerRUS merged commit 0df3810 into master Dec 22, 2021
@StrikerRUS StrikerRUS deleted the r/comments branch December 22, 2021 01:38
@jameslamb jameslamb mentioned this pull request Oct 7, 2022
40 tasks
@github-actions
Copy link

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 23, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants