Skip to content

Commit 672ec3f

Browse files
authored
merge pr #141: stacks v1.0.0
2 parents a8f8cf2 + 2f1836c commit 672ec3f

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: stacks
22
Title: Tidy Model Stacking
3-
Version: 0.2.4.9000
3+
Version: 1.0.0
44
Authors@R: c(
55
person(given = "Simon",
66
family = "Couch",

NEWS.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
1-
# stacks (development version)
1+
# stacks 1.0.0
22

3-
To be released as stacks 1.0.0.
3+
stacks 1.0.0 is the first production release of the package. While this release
4+
includes only a few minor bug fixes, it's accompanied by a white paper
5+
recently published in the Journal of Open Source software. You can read
6+
that paper [here](https://doi.org/10.21105/joss.04471)!
47

5-
* Addressed re-introduction of bug arising from outcome levels that are not
8+
This release:
9+
10+
* Addresses re-introduction of a bug arising from outcome levels that are not
611
valid column names in the multinomial classification setting (#133).
712
* Fixes bug where stacks will return incorrect predictions if an elastic net
813
meta-learner is used, the `type` argument to `predict` is set to `"class"`,

R/add_candidates.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,8 @@ collate_predictions <- function(x) {
506506

507507
# given a set of candidate columns, removes those with hard class predictions
508508
remove_class_preds <- function(x) {
509-
lvls <- make.names(levels(factor(x[[1]])))
509+
lvls <- make.names(paste0(".prefix.", levels(factor(x[[1]]))))
510+
lvls <- gsub(".prefix.", "", lvls, fixed = TRUE)
510511

511512
# gather indices for the columns with class probability predictions
512513
prob_preds_idx <- purrr::map(paste0(".pred_", lvls), grepl, x = colnames(x)) %>%

0 commit comments

Comments
 (0)