Skip to content

Set mode "censored regression" #605

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Nov 17, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: parsnip
Title: A Common API to Modeling and Analysis Functions
Version: 0.1.7.9001
Version: 0.1.7.9002
Authors@R: c(
person("Max", "Kuhn", , "[email protected]", role = c("aut", "cre")),
person("Davis", "Vaughan", , "[email protected]", role = "aut"),
Expand Down
4 changes: 2 additions & 2 deletions R/aaa_models.R
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ check_interface_val <- function(x) {
#' prediction objects.
#' @keywords internal
#' @details These functions are available for users to add their
#' own models or engines (in package or otherwise) so that they can
#' own models or engines (in a package or otherwise) so that they can
#' be accessed using `parsnip`. This is more thoroughly documented
#' on the package web site (see references below).
#'
Expand Down Expand Up @@ -659,7 +659,7 @@ set_model_arg <- function(model, eng, parsnip, original, func, has_submodel) {
#' @rdname set_new_model
#' @keywords internal
#' @export
set_dependency <- function(model, eng, pkg= "parsnip") {
set_dependency <- function(model, eng, pkg = "parsnip") {
check_model_exists(model)
check_eng_val(eng)
check_pkg_val(pkg)
Expand Down
1 change: 1 addition & 0 deletions R/bag_tree.R
Original file line number Diff line number Diff line change
Expand Up @@ -122,3 +122,4 @@ check_args.bag_tree <- function(object) {
set_new_model("bag_tree")
set_model_mode("bag_tree", "classification")
set_model_mode("bag_tree", "regression")
set_model_mode("bag_tree", "censored regression")
1 change: 1 addition & 0 deletions R/boost_tree_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ set_new_model("boost_tree")

set_model_mode("boost_tree", "classification")
set_model_mode("boost_tree", "regression")
set_model_mode("boost_tree", "censored regression")

# ------------------------------------------------------------------------------

Expand Down
1 change: 1 addition & 0 deletions R/decision_tree_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ set_new_model("decision_tree")

set_model_mode("decision_tree", "classification")
set_model_mode("decision_tree", "regression")
set_model_mode("decision_tree", "censored regression")

# ------------------------------------------------------------------------------

Expand Down
2 changes: 1 addition & 1 deletion man/set_new_model.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.