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
a6af7a16
Commit
a6af7a16
authored
Oct 06, 2017
by
rgranvil
Committed by
Laurae
Oct 06, 2017
Browse files
Preventing large numeric parameters from being converted to scientific notation (#968)
parent
97b91108
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
R-package/R/utils.R
R-package/R/utils.R
+1
-1
No files found.
R-package/R/utils.R
View file @
a6af7a16
...
...
@@ -110,7 +110,7 @@ lgb.params2str <- function(params, ...) {
for
(
key
in
names
(
params
))
{
# Join multi value first
val
<-
paste0
(
params
[[
key
]],
collapse
=
","
)
val
<-
paste0
(
format
(
params
[[
key
]],
scientific
=
FALSE
),
collapse
=
","
)
if
(
nchar
(
val
)
<=
0
)
next
# Skip join
# Join key value
...
...
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