Skip to content

Commit

Permalink
Bump LightGBM version to 2.1.1, fix R integer input crash (#1347)
Browse files Browse the repository at this point in the history
* Bump R version

* Bump CLI/Py version

* Roll back to 2.1.1 in R

* Fix #1280
  • Loading branch information
Laurae2 authored and guolinke committed Apr 29, 2018
1 parent 4967709 commit 2e0ebb6
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
4 changes: 2 additions & 2 deletions R-package/DESCRIPTION
@@ -1,8 +1,8 @@
Package: lightgbm
Type: Package
Title: Light Gradient Boosting Machine
Version: 2.1.0
Date: 2018-03-24
Version: 2.1.1
Date: 2018-04-29
Authors@R: c(
person("Guolin", "Ke", email = "guolin.ke@microsoft.com", role = c("aut", "cre")),
person("Damien", "Soukhavong", email = "damien.soukhavong@skema.edu", role = c("ctb")),
Expand Down
8 changes: 8 additions & 0 deletions R-package/R/lgb.Dataset.R
Expand Up @@ -67,6 +67,14 @@ Dataset <- R6Class(
}
}

# Check for matrix format
if (is.matrix(data)) {
# Check whether matrix is the correct type first ("double")
if (storage.mode(data) != "double") {
storage.mode(data) <- "double"
}
}

# Setup private attributes
private$raw_data <- data
private$params <- params
Expand Down
2 changes: 1 addition & 1 deletion VERSION.txt
@@ -1 +1 @@
2.1.0
2.1.1

0 comments on commit 2e0ebb6

Please sign in to comment.