Skip to content
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
4 changes: 2 additions & 2 deletions R/boost_tree.R
Original file line number Diff line number Diff line change
Expand Up @@ -114,12 +114,12 @@

boost_tree <-
function(mode = "unknown",
...,
mtry = NULL, trees = NULL, min_n = NULL,
tree_depth = NULL, learn_rate = NULL,
loss_reduction = NULL,
sample_size = NULL,
others = list(),
...) {
others = list()) {
check_empty_ellipse(...)

if (!(mode %in% boost_tree_modes))
Expand Down
4 changes: 2 additions & 2 deletions R/linear_reg.R
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,10 @@
#' @importFrom purrr map_lgl
linear_reg <-
function(mode = "regression",
...,
penalty = NULL,
mixture = NULL,
others = list(),
...) {
others = list()) {
check_empty_ellipse(...)
if (!(mode %in% linear_reg_modes))
stop(
Expand Down
4 changes: 2 additions & 2 deletions R/logistic_reg.R
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,10 @@
#' @importFrom purrr map_lgl
logistic_reg <-
function(mode = "classification",
...,
penalty = NULL,
mixture = NULL,
others = list(),
...) {
others = list()) {
check_empty_ellipse(...)
if (!(mode %in% logistic_reg_modes))
stop(
Expand Down
4 changes: 2 additions & 2 deletions R/mars.R
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,9 @@

mars <-
function(mode = "unknown",
...,
num_terms = NULL, prod_degree = NULL, prune_method = NULL,
others = list(),
...) {
others = list()) {
check_empty_ellipse(...)

if (!(mode %in% mars_modes))
Expand Down
4 changes: 2 additions & 2 deletions R/mlp.R
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,10 @@

mlp <-
function(mode = "unknown",
...,
hidden_units = NULL, penalty = NULL, dropout = NULL, epochs = NULL,
activation = NULL,
others = list(),
...) {
others = list()) {
check_empty_ellipse(...)

act_funs <- c("linear", "softmax", "relu", "elu")
Expand Down
4 changes: 2 additions & 2 deletions R/multinom_reg.R
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,10 @@
#' @importFrom purrr map_lgl
multinom_reg <-
function(mode = "classification",
...,
penalty = NULL,
mixture = NULL,
others = list(),
...) {
others = list()) {
check_empty_ellipse(...)
if (!(mode %in% multinom_reg_modes))
stop(
Expand Down
4 changes: 2 additions & 2 deletions R/nearest_neighbor.R
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,11 @@
#'
#' @export
nearest_neighbor <- function(mode = "unknown",
...,
neighbors = NULL,
weight_func = NULL,
dist_power = NULL,
others = list(),
...) {
others = list()) {

check_empty_ellipse(...)

Expand Down
4 changes: 2 additions & 2 deletions R/rand_forest.R
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,9 @@

rand_forest <-
function(mode = "unknown",
...,
mtry = NULL, trees = NULL, min_n = NULL,
others = list(),
...) {
others = list()) {
check_empty_ellipse(...)

## TODO: make a utility function here
Expand Down
6 changes: 3 additions & 3 deletions R/surv_reg.R
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#' Since survival models typically involve censoring (and require the use of
#' [survival::Surv()] objects), the [fit()] function will require that the
#' survival model be specified via the formula interface.
#'
#'
#' Also, for the `flexsurv::flexsurvfit` engine, the typical
#' `strata` function cannot be used. To achieve the same effect,
#' the extra parameter roles can be used (as described above).
Expand Down Expand Up @@ -51,9 +51,9 @@
#' @export
surv_reg <-
function(mode = "regression",
...,
dist = NULL,
others = list(),
...) {
others = list()) {
check_empty_ellipse(...)
if (!(mode %in% surv_reg_modes))
stop(
Expand Down
8 changes: 4 additions & 4 deletions docs/articles/articles/Classification.html

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

4 changes: 2 additions & 2 deletions docs/articles/articles/Scratch.html

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

14 changes: 7 additions & 7 deletions docs/reference/boost_tree.html

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

14 changes: 7 additions & 7 deletions docs/reference/linear_reg.html

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

14 changes: 7 additions & 7 deletions docs/reference/logistic_reg.html

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

14 changes: 7 additions & 7 deletions docs/reference/mars.html

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

Loading