Skip to content

Commit

Permalink
fix regr
Browse files Browse the repository at this point in the history
  • Loading branch information
RaphaelS1 committed Oct 20, 2021
1 parent 54662a5 commit 650d05d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/learner_lightgbm_regr_lightgbm.R
Original file line number Diff line number Diff line change
Expand Up @@ -231,8 +231,8 @@ LearnerRegrLightGBM = R6Class("LearnerRegrLightGBM",
train_ids = setdiff(seq(task$nrow), task$row_roles$validation)

dtrain = lightgbm::lgb.Dataset(
data = as.matrix(task$data(cols = task$feature_names)),
label = train_label,
data = as.matrix(task$data(rows = train_ids, cols = task$feature_names)),
label = as.matrix(task$data(rows = train_ids, cols = task$target_names)),
free_raw_data = FALSE,
categorical_feature = pars$categorical_feature
)
Expand Down

0 comments on commit 650d05d

Please sign in to comment.