Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
tianlh
LightGBM-DCU
Commits
b7e772b6
Unverified
Commit
b7e772b6
authored
Jan 28, 2019
by
Laurae
Committed by
GitHub
Jan 28, 2019
Browse files
Found error from #1939 (#1974)
parent
c306c7b9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
R-package/demo/basic_walkthrough.R
R-package/demo/basic_walkthrough.R
+1
-1
No files found.
R-package/demo/basic_walkthrough.R
View file @
b7e772b6
...
@@ -95,7 +95,7 @@ print(paste("sum(abs(pred2-pred))=", sum(abs(pred2 - pred))))
...
@@ -95,7 +95,7 @@ print(paste("sum(abs(pred2-pred))=", sum(abs(pred2 - pred))))
#--------------------Advanced features ---------------------------
#--------------------Advanced features ---------------------------
# To use advanced features, we need to put data in lgb.Dataset
# 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
)
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-------------------------
#--------------------Using validation set-------------------------
# valids is a list of lgb.Dataset, each of them is tagged with name
# valids is a list of lgb.Dataset, each of them is tagged with name
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment