-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
Fixed misc CRAN issues #1260
Fixed misc CRAN issues #1260
Conversation
R-package/DESCRIPTION
Outdated
@@ -5,7 +5,7 @@ Version: 2.1.0 | |||
Date: 2018-01-25 | |||
Author: Guolin Ke <guolin.ke@microsoft.com> | |||
Maintainer: Guolin Ke <guolin.ke@microsoft.com> | |||
Description: LightGBM is a gradient boosting framework that uses tree based learning algorithms. | |||
Description: Tree based algorithms can be improved by introducing boosting frameworks. LightGBM is one such framework. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is in response to my least-favorite CRAN note. Your package's Description cannot start with the words "this package" or the name of the package.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jameslamb I think this Description is too short. We can copy some from https://github.com/Microsoft/LightGBM/blob/master/README.md
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@guolinke would you like me to make that change on this PR?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah
#' Main CV logic for LightGBM | ||
#' | ||
#' @title Main CV logic for LightGBM | ||
#' @name lgb.cv |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this and lgb.train
were getting grouped into a single documentation object with interwoven fields and R CMD CHECK complained about duplicated parameters. Using explicit @name
elements avoids this
@@ -122,5 +122,28 @@ NULL | |||
# Various imports | |||
#' @import methods | |||
#' @importFrom R6 R6Class | |||
#' @useDynLib lightgbm | |||
#' @useDynLib lib_lightgbm |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was unable to build the package without making this change
|
||
# Suppress false positive warnings from R CMD CHECK about | ||
# "unrecognized global variable" | ||
globalVariables(c( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This suppresses the R CMD CHECK
warning about "unrecognized global variables"
@@ -0,0 +1 @@ | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these address warnings from CRAN about having Make
scripts with only LF characters in them
ping @Laurae2 |
@guolinke Please review the R-package description if you need to make changes on it. You can compare with xgboost: https://github.com/dmlc/xgboost/blob/master/R-package/DESCRIPTION |
@guolinke , adding @jameslamb and @Laurae2 to the author list will be nice. @jameslamb , could you please also sign the CLA? |
@chivee sorry for the delay. CLA signed! |
It is designed to be distributed and efficient with the following advantages: | ||
1. Faster training speed and higher efficiency. | ||
2. Lower memory usage. | ||
3. Better accuracy. | ||
4. Parallel learning supported. | ||
5. Capable of handling large-scale data. | ||
In recognition of these advantages, LightGBM has being widely-used in many winning solutions of machine learning competitions. | ||
|
||
Comparison experiments on public datasets suggest that LightGBM can outperform existing boosting frameworks on both efficiency and accuracy, with significantly lower memory consumption. In addition, parallel experiments suggest that in certain circumstances, LightGBM can achieve a linear speed-up in training time by using multiple machines. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@guolinke per your request, I've included additional details here. You will recognize most of this from the README you linked me too. I also added the line about "this is the R interface to the project" following the way XGBoost structured their DESCRIPTION: https://cran.r-project.org/web/packages/xgboost/index.html
I think that's a good clarification for people, to say that LightGBM
is a framework and this is the interface to it implemented in a particular programming language.
@Laurae2 can you create another PR to add yourself and other R's contributors to author List ? |
@guolinke Yes I'll do when I get time tonight or next week. Do I add both @jameslamb and @yanyachen ? |
* Add authors #1260 * Add line break at the end of file
Hola , que tal amigos |
Hello,
Thank you for this excellent package! @randxie and I would like to help you address #629 . We have some experience on the team working with the wonderful eccentricities of getting accepted to CRAN.
What I changed
Please consider this first PR to address some low-hanging notes and warnings. I've also attached a file with the state of the
R CMD CHECK
output showing the remaining notes and warnings that could be addressed in follow-up PRs.r_cmd_check.log
As of this PR, R CMD CHECK for this package is down to 4 warnings and 3 notes.
Setup Information
I built the package by running the following from the repo root (I am on MacOS):
Please let me know if you have any questions or concerns! Please also let @randxie and I know if you are open to us making additional contributions to move this package toward CRAN-readiness.
Thanks!
-James