Skip to content

Commit

Permalink
fix: also removed reshape argument for prediction
Browse files Browse the repository at this point in the history
when using lightgbm 4.0.0 - this is again a temproary fix
  • Loading branch information
kapsner committed Jul 18, 2023
1 parent 47aeca9 commit 09cde9d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ VignetteBuilder:
knitr
Config/testthat/edition: 3
Config/testthat/parallel: false
Date/Publication: 2023-07-17 19:29:21.876818 UTC
Date/Publication: 2023-07-18 05:09:17.26658 UTC
Encoding: UTF-8
Roxygen: list(markdown = TRUE)
RoxygenNote: 7.2.3
6 changes: 4 additions & 2 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# mllrnrs NEWS

## Unreleased (2023-07-17)
## v0.0.2 (2023-07-17)

#### Bug fixes

Expand Down Expand Up @@ -38,6 +38,8 @@

#### Other changes

- updated news.md and description
([47aeca9](https://github.com/kapsner/mllrnrs/tree/47aeca9df9197de14eb8c4b7a37a7579e3f55b33))
- updated cran-comments
([9be58ff](https://github.com/kapsner/mllrnrs/tree/9be58ffe0b30afa956dc8ad9732e2a7fdac65ab5))
- updated news.md
Expand All @@ -62,7 +64,7 @@
([af08974](https://github.com/kapsner/mllrnrs/tree/af0897471d09d71b29a10218030ad573a1b303c0))

Full set of changes:
[`v0.0.1...7a9ef30`](https://github.com/kapsner/mllrnrs/compare/v0.0.1...7a9ef30)
[`v0.0.1...v0.0.2`](https://github.com/kapsner/mllrnrs/compare/v0.0.1...v0.0.2)

## v0.0.1 (2022-11-13)

Expand Down
2 changes: 2 additions & 0 deletions R/learner_lightgbm.R
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,8 @@ lightgbm_predict <- function(model, newdata, ncores, ...) {
args$data <- newdata
} else {
args$newdata <- newdata
# remove also reshape argument (https://github.com/microsoft/LightGBM/pull/4971)
args$reshape <- NULL
}

preds <- do.call(stats::predict, args)
Expand Down

0 comments on commit 09cde9d

Please sign in to comment.