Skip to content

Commit

Permalink
Preventing large numeric parameters from being converted to scientifi…
Browse files Browse the repository at this point in the history
…c notation (#968)
  • Loading branch information
rgranvil authored and Laurae2 committed Oct 6, 2017
1 parent 97b9110 commit a6af7a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R-package/R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a6af7a1

Please sign in to comment.