Skip to content

tunable.model_spec() includes rows for non-tunable arguments marked with tune() #1104

Open
@simonpcouch

Description

@simonpcouch
library(tidymodels)

tunable(
  linear_reg() %>% 
  set_engine("glmnet", dfmax = tune())
)
#> # A tibble: 3 × 5
#>   name    call_info        source     component  component_id
#>   <chr>   <list>           <chr>      <chr>      <chr>       
#> 1 penalty <named list [2]> model_spec linear_reg main        
#> 2 mixture <named list [3]> model_spec linear_reg main        
#> 3 dfmax   <NULL>           model_spec linear_reg engine

Created on 2024-04-04 with reprex v2.1.0

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