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] Allow for valid data to be a slice of the training data #6844

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
Adding integer qualifier
  • Loading branch information
walkerjameschris authored Mar 2, 2025
commit 1153a10f98a38c3aeb2166167903f8cde67ae4b7
2 changes: 1 addition & 1 deletion R-package/tests/testthat/test_basic.R
Original file line number Diff line number Diff line change
@@ -3873,7 +3873,7 @@ test_that("lgb.train() can use slices of an lgb.Dataset for train and valid data
train <- lgb.slice.Dataset(ds, seq_len(100L))
test <- lgb.slice.Dataset(ds, seq_len(50L) + 100L)

test_mat <- as.matrix(iris[seq_len(50L) + 100, seq_len(3L)])
test_mat <- as.matrix(iris[seq_len(50L) + 100L, seq_len(3L)])
test_label <- iris[seq_len(50L) + 100L, 4L]

params <- list(