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
0ddb3efd
Commit
0ddb3efd
authored
Jan 11, 2017
by
Guolin Ke
Browse files
[R-package] change ```startsWith``` to ```grepl```.
parent
2035c54b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
R-package/R/lgb.Booster.R
R-package/R/lgb.Booster.R
+2
-2
No files found.
R-package/R/lgb.Booster.R
View file @
0ddb3efd
...
@@ -240,8 +240,8 @@ Booster <- R6Class(
...
@@ -240,8 +240,8 @@ Booster <- R6Class(
private
$
eval_names
<-
names
private
$
eval_names
<-
names
private
$
higher_better_inner_eval
<-
rep
(
FALSE
,
length
(
names
))
private
$
higher_better_inner_eval
<-
rep
(
FALSE
,
length
(
names
))
for
(
i
in
seq_along
(
names
))
{
for
(
i
in
seq_along
(
names
))
{
if
(
startsWith
(
names
[
i
]
,
"auc"
)
|
if
(
names
[
i
]
)
==
"auc"
|
startsWith
(
names
[
i
],
"ndcg"
))
{
grepl
(
"^ndcg"
,
names
[
i
]
))
{
private
$
higher_better_inner_eval
[
i
]
<-
TRUE
private
$
higher_better_inner_eval
[
i
]
<-
TRUE
}
}
}
}
...
...
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