Skip to content

Commit

Permalink
[R-package] Sort indices in lgb.cv() (fixes #2503) #2524
Browse files Browse the repository at this point in the history
  • Loading branch information
jameslamb committed Oct 24, 2019
1 parent 44b0aca commit bdc310a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R-package/R/lgb.Dataset.R
Expand Up @@ -87,7 +87,7 @@ Dataset <- R6::R6Class(
private$categorical_feature <- categorical_feature
private$predictor <- predictor
private$free_raw_data <- free_raw_data
private$used_indices <- used_indices
private$used_indices <- sort(used_indices, decreasing = FALSE)
private$info <- info

},
Expand Down Expand Up @@ -481,7 +481,7 @@ Dataset <- R6::R6Class(
private$categorical_feature,
private$predictor,
private$free_raw_data,
idxset,
sort(idxset, decreasing = FALSE),
NULL,
...)

Expand Down

0 comments on commit bdc310a

Please sign in to comment.