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] Warnings in R package tests #4108

Closed
jameslamb opened this issue Mar 25, 2021 · 1 comment · Fixed by #4232
Closed

[R-package] Warnings in R package tests #4108

jameslamb opened this issue Mar 25, 2021 · 1 comment · Fixed by #4232

Comments

@jameslamb
Copy link
Collaborator

Description

The R package tests currently have the following warnings which seem problematic. Contributions to fix these would be welcomed!

[LightGBM] [Warning] Unknown parameter: valids
[LightGBM] [Warning] Unknown parameter: 0x0000000016067830>
[LightGBM] [Warning] Unknown parameter: valids
[LightGBM] [Warning] Unknown parameter: 0x0000000016067830>
[LightGBM] [Warning] Unknown parameter: valids
[LightGBM] [Warning] Unknown parameter: 0x0000000016067830>
[LightGBM] [Warning] Unknown parameter: valids
[LightGBM] [Warning] Unknown parameter: 0x0000000016067830>
[LightGBM] [Warning] Unknown parameter: valids
[LightGBM] [Warning] Unknown parameter: 0x0000000016067830>
[LightGBM] [Warning] Unknown parameter: valids
[LightGBM] [Warning] Unknown parameter: 0x0000000016067830>
[LightGBM] [Warning] Unknown parameter: valids
[LightGBM] [Warning] Unknown parameter: 0x0000000016067830>
[LightGBM] [Warning] Unknown parameter: valids
[LightGBM] [Warning] Unknown parameter: 0x0000000016067830>
[LightGBM] [Warning] Unknown parameter: valids
[LightGBM] [Warning] Unknown parameter: 0x0000000016067830>
[LightGBM] [Warning] Unknown parameter: valids
[LightGBM] [Warning] Unknown parameter: 0x0000000016067830>
[LightGBM] [Warning] Unknown parameter: valids
[LightGBM] [Warning] Unknown parameter: 0x0000000016067830>
[LightGBM] [Warning] Unknown parameter: valids
[LightGBM] [Warning] Unknown parameter: 0x0000000016067830>
[LightGBM] [Warning] Unknown parameter: valids
[LightGBM] [Warning] Unknown parameter: 0x0000000016067830>
[LightGBM] [Warning] Unknown parameter: valids
[LightGBM] [Warning] Unknown parameter: 0x0000000016067830>
[LightGBM] [Warning] There are no meaningful features, as all feature values are constant.
[LightGBM] [Warning] Unknown parameter: 2,3
[LightGBM] [Warning] Unknown parameter: 127,3
[LightGBM] [Warning] Unknown parameter: 2,3
[LightGBM] [Warning] Unknown parameter: 2,3
[LightGBM] [Warning] Unknown parameter: 2,3
[LightGBM] [Warning] Unknown parameter interaction_constraints=cap-shape=bell
[LightGBM] [Warning] Unknown parameter cap-shape=conical,cap-shape=convex
[LightGBM] [Warning] Unknown parameter: ,
[LightGBM] [Warning] Unknown parameter: 2,3
[LightGBM] [Warning] Unknown parameter: 2,3
[LightGBM] [Warning] Unknown parameter interaction_constraints=cap-shape=bell
[LightGBM] [Warning] Unknown parameter: ,
[LightGBM] [Warning] Unknown parameter: cap-shape
[LightGBM] [Warning] Unknown parameter: 2,3
[LightGBM] [Warning] Unknown parameter: 2,3
[LightGBM] [Warning] Unknown parameter: 2,3
[LightGBM] [Warning] Unknown parameter: 2,3
[LightGBM] [Warning] Unknown parameter interaction_constraints=cap-shape=bell_x
[LightGBM] [Warning] Unknown parameter cap-shape=conical_x,cap-shape=convex_x
[LightGBM] [Warning] Unknown parameter: ,
[LightGBM] [Warning] Unknown parameter: 2,3

Reproducible example

To reproduce these warnings:

  1. Build the R package from source
sh build-cran-package.sh
R CMD INSTALL lightgbm_*.tar.gz
  1. Run the unit tests.
cd R-package/tests/
Rscript testthat.R

It's hard to tell from the logs which specific tests each of these warnings come from. I recommend running the tests one at a time, interactively.

Notes for Contributors

You do not have to address all of these warnings in one pull request. Pull requests that only fix one or some of them are welcome!

@github-actions
Copy link

This issue 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
1 participant