Skip to content
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

Clean up dials:: namespacing #377

Merged
merged 1 commit into from
Feb 12, 2025
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 R/param_all_neighbors.R
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#' all_neighbors()
#' @export
all_neighbors <- function(values = c(TRUE, FALSE)) {
dials::new_qual_param(
new_qual_param(
type = "logical",
values = values,
label = c(all_neighbors = "All Neighbors"),
Expand Down
6 changes: 3 additions & 3 deletions R/param_engine_partykit.R
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#' corresponds to `1 - {p-value}`.
#' @export
conditional_min_criterion <- function(range = c(1.386294, 15), trans = scales::transform_logit()) {
dials::new_quant_param(
new_quant_param(
type = "double",
range = range,
inclusive = c(TRUE, TRUE),
Expand All @@ -32,7 +32,7 @@ values_test_type <- c("Bonferroni", "MonteCarlo", "Univariate", "Teststatistic")
#' @export
#' @rdname conditional_min_criterion
conditional_test_type <- function(values = values_test_type) {
dials::new_qual_param(
new_qual_param(
type = "character",
values = values,
label = c(conditional_test_type = "Splitting Function Test Type"),
Expand All @@ -47,7 +47,7 @@ values_test_statistic <- c("quadratic", "maximum")
#' @export
#' @rdname conditional_min_criterion
conditional_test_statistic <- function(values = values_test_statistic) {
dials::new_qual_param(
new_qual_param(
type = "character",
values = values,
label = c(conditional_test_statistic = "Splitting Function Test Statistic"),
Expand Down
6 changes: 3 additions & 3 deletions R/param_engine_sda.R
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#'
#' @export
shrinkage_correlation <- function(range = c(0, 1), trans = NULL) {
dials::new_quant_param(
new_quant_param(
type = "double",
range = range,
inclusive = c(TRUE, TRUE),
Expand All @@ -33,7 +33,7 @@ shrinkage_correlation <- function(range = c(0, 1), trans = NULL) {
#' @export
#' @rdname shrinkage_correlation
shrinkage_variance <- function(range = c(0, 1), trans = NULL) {
dials::new_quant_param(
new_quant_param(
type = "double",
range = range,
inclusive = c(TRUE, TRUE),
Expand All @@ -45,7 +45,7 @@ shrinkage_variance <- function(range = c(0, 1), trans = NULL) {
#' @export
#' @rdname shrinkage_correlation
shrinkage_frequencies <- function(range = c(0, 1), trans = NULL) {
dials::new_quant_param(
new_quant_param(
type = "double",
range = range,
inclusive = c(TRUE, TRUE),
Expand Down
2 changes: 1 addition & 1 deletion R/param_mtry_prop.R
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
#'
#' @export
mtry_prop <- function(range = c(0.1, 1), trans = NULL) {
dials::new_quant_param(
new_quant_param(
type = "double",
range = range,
inclusive = c(TRUE, TRUE),
Expand Down
2 changes: 1 addition & 1 deletion R/param_num_tokens.R
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#' num_tokens()
#' @export
num_tokens <- function(range = c(1, 3), trans = NULL) {
dials::new_quant_param(
new_quant_param(
type = "integer",
range = range,
inclusive = c(TRUE, TRUE),
Expand Down
Loading