Skip to content

Commit 3178f35

Browse files
hfricktopepo
andauthored
Set mode "censored regression" (#605)
* set "censored regression" mode for bag_tree, boost_tree, decision_tree * typo * bump to 9002 Co-authored-by: Max Kuhn <[email protected]>
1 parent fd4afb0 commit 3178f35

File tree

6 files changed

+7
-4
lines changed

6 files changed

+7
-4
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: parsnip
22
Title: A Common API to Modeling and Analysis Functions
3-
Version: 0.1.7.9001
3+
Version: 0.1.7.9002
44
Authors@R: c(
55
person("Max", "Kuhn", , "[email protected]", role = c("aut", "cre")),
66
person("Davis", "Vaughan", , "[email protected]", role = "aut"),

R/aaa_models.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ check_interface_val <- function(x) {
467467
#' prediction objects.
468468
#' @keywords internal
469469
#' @details These functions are available for users to add their
470-
#' own models or engines (in package or otherwise) so that they can
470+
#' own models or engines (in a package or otherwise) so that they can
471471
#' be accessed using `parsnip`. This is more thoroughly documented
472472
#' on the package web site (see references below).
473473
#'
@@ -659,7 +659,7 @@ set_model_arg <- function(model, eng, parsnip, original, func, has_submodel) {
659659
#' @rdname set_new_model
660660
#' @keywords internal
661661
#' @export
662-
set_dependency <- function(model, eng, pkg= "parsnip") {
662+
set_dependency <- function(model, eng, pkg = "parsnip") {
663663
check_model_exists(model)
664664
check_eng_val(eng)
665665
check_pkg_val(pkg)

R/bag_tree.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,3 +122,4 @@ check_args.bag_tree <- function(object) {
122122
set_new_model("bag_tree")
123123
set_model_mode("bag_tree", "classification")
124124
set_model_mode("bag_tree", "regression")
125+
set_model_mode("bag_tree", "censored regression")

R/boost_tree_data.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ set_new_model("boost_tree")
22

33
set_model_mode("boost_tree", "classification")
44
set_model_mode("boost_tree", "regression")
5+
set_model_mode("boost_tree", "censored regression")
56

67
# ------------------------------------------------------------------------------
78

R/decision_tree_data.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ set_new_model("decision_tree")
22

33
set_model_mode("decision_tree", "classification")
44
set_model_mode("decision_tree", "regression")
5+
set_model_mode("decision_tree", "censored regression")
56

67
# ------------------------------------------------------------------------------
78

man/set_new_model.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)