Skip to content

tunable.multinomial_reg() registers incompatible arguments #1053

Closed
@simonpcouch

Description

@simonpcouch

tunable.multinomial_reg() registers brulee_mlp_engine_args for brulee:

parsnip/R/tunable.R

Lines 267 to 273 in 07961a0

tunable.multinomial_reg <- function(x, ...) {
res <- NextMethod()
if (x$engine == "glmnet") {
res$call_info[res$name == "mixture"] <-
list(list(pkg = "dials", fun = "mixture", range = c(0.05, 1.00)))
} else if (x$engine == "brulee") {
res <- add_engine_parameters(res, brulee_mlp_engine_args)

Even though there's an arg configuration for multinom_reg() specifically:

parsnip/R/tunable.R

Lines 225 to 227 in 07961a0

brulee_multinomial_engine_args <-
brulee_mlp_engine_args %>%
dplyr::filter(name %in% c("momentum", "batch_size", "stop_iter", "class_weights"))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions