Skip to content

Commit

Permalink
Found error from #1939 (#1974)
Browse files Browse the repository at this point in the history
  • Loading branch information
Laurae2 committed Jan 28, 2019
1 parent c306c7b commit b7e772b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R-package/demo/basic_walkthrough.R
Expand Up @@ -95,7 +95,7 @@ print(paste("sum(abs(pred2-pred))=", sum(abs(pred2 - pred))))
#--------------------Advanced features ---------------------------
# To use advanced features, we need to put data in lgb.Dataset
dtrain <- lgb.Dataset(data = train$data, label = train$label, free_raw_data = FALSE)
dtest <- lgb.Dataset(data = test$data, label = test$label, free_raw_data = FALSE)
dtest <- lgb.Dataset.create.valid(dtrain, data = test$data, label = test$label)

#--------------------Using validation set-------------------------
# valids is a list of lgb.Dataset, each of them is tagged with name
Expand Down

0 comments on commit b7e772b

Please sign in to comment.