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
13d0ceee
Unverified
Commit
13d0ceee
authored
Apr 22, 2021
by
david-cortes
Committed by
GitHub
Apr 21, 2021
Browse files
[R-package] fix grammar in comments
parent
887ef4cc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
R-package/R/lgb.Dataset.R
R-package/R/lgb.Dataset.R
+2
-2
No files found.
R-package/R/lgb.Dataset.R
View file @
13d0ceee
...
@@ -127,7 +127,7 @@ Dataset <- R6::R6Class(
...
@@ -127,7 +127,7 @@ Dataset <- R6::R6Class(
cnames
<-
colnames
(
private
$
raw_data
)
cnames
<-
colnames
(
private
$
raw_data
)
}
}
# set feature names if not exist
# set feature names if
they do
not exist
if
(
is.null
(
private
$
colnames
)
&&
!
is.null
(
cnames
))
{
if
(
is.null
(
private
$
colnames
)
&&
!
is.null
(
cnames
))
{
private
$
colnames
<-
as.character
(
cnames
)
private
$
colnames
<-
as.character
(
cnames
)
}
}
...
@@ -140,7 +140,7 @@ Dataset <- R6::R6Class(
...
@@ -140,7 +140,7 @@ Dataset <- R6::R6Class(
cate_indices
<-
as.list
(
match
(
private
$
categorical_feature
,
private
$
colnames
)
-
1L
)
cate_indices
<-
as.list
(
match
(
private
$
categorical_feature
,
private
$
colnames
)
-
1L
)
# Provided indices, but some indices are
not ex
is
t
ing?
# Provided indices, but some indices are
m
is
s
ing?
if
(
sum
(
is.na
(
cate_indices
))
>
0L
)
{
if
(
sum
(
is.na
(
cate_indices
))
>
0L
)
{
stop
(
stop
(
"lgb.self.get.handle: supplied an unknown feature in categorical_feature: "
"lgb.self.get.handle: supplied an unknown feature in categorical_feature: "
...
...
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