Skip to content

Commit

Permalink
Merge pull request #291 from tidymodels/encodings
Browse files Browse the repository at this point in the history
Fix encodings
  • Loading branch information
hfrick authored Jan 10, 2024
2 parents 6f38052 + f4224f0 commit ebcfff8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@

* Bug fix for `multi_predict(type = "survival")` for `proportional_hazards(engine = "glmnet")` models: when used with a single `penalty` value, this value is now included in the results. It was previously omitted (#267, #282).

* Bug fix: `proportional_hazards(engine = "glmnet")` models now don't pretend to be able to deal with sparse matrices when they are not (#291).


# censored 0.2.0

Expand Down
2 changes: 1 addition & 1 deletion R/bag_tree-data.R
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ make_bag_tree_rpart <- function() {
eng = "rpart",
mode = "censored regression",
options = list(
predictor_indicators = "traditional",
predictor_indicators = "none",
compute_intercept = FALSE,
remove_intercept = FALSE,
allow_sparse_x = FALSE
Expand Down
2 changes: 1 addition & 1 deletion R/proportional_hazards-data.R
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ make_proportional_hazards_glmnet <- function() {
predictor_indicators = "traditional",
compute_intercept = TRUE,
remove_intercept = TRUE,
allow_sparse_x = TRUE
allow_sparse_x = FALSE
)
)

Expand Down

0 comments on commit ebcfff8

Please sign in to comment.