Skip to content

[R-package] add test on importance types#3231

Merged
guolinke merged 2 commits intolightgbm-org:masterfrom
jameslamb:r/importance-type-tests
Jul 20, 2020
Merged

[R-package] add test on importance types#3231
guolinke merged 2 commits intolightgbm-org:masterfrom
jameslamb:r/importance-type-tests

Conversation

@jameslamb
Copy link
Copy Markdown
Member

This PR proposes a test for the R package on the configuration of feature types introduced in #3220 .

@jameslamb jameslamb requested a review from guolinke July 16, 2020 02:57
@jameslamb jameslamb requested a review from Laurae2 as a code owner July 16, 2020 02:57
@jameslamb jameslamb force-pushed the r/importance-type-tests branch from 79f6e54 to e4f230c Compare July 17, 2020 05:07
@guolinke guolinke merged commit 8e077e0 into lightgbm-org:master Jul 20, 2020
test_that("Saving a model with different feature importance types works", {
set.seed(708L)
data(agaricus.train, package = "lightgbm")
data(agaricus.test, package = "lightgbm")
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Sorry for commenting in the closed PR, but is seems that test data is not used in this test.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

blegh yeah I copied and pasted from other tests. Cut out the valids since it wasn't necessary, but I forgot to remove the test data. I'll just bundle that into #3240

@jameslamb jameslamb deleted the r/importance-type-tests branch October 11, 2020 04:37
@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 24, 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.

3 participants