Skip to content

default values for tuning parameters should be within range #153

Closed
@lukasal

Description

@lukasal

The problem

The default value for parameters should be within range, as otherwise out of range values are selected (e.g. in value_seq_int and value_seq_double when levels == 1), but also everywhere else where the default is accessed.

Reproducible example

library(tidymodels)
param <- under_ratio(range = c(12,13))
param$default
# the value is 1, it should been something between 12,13
grid_regular(param,levels = 1)
# with the randomized grid it works
grid_random(param,size = 1)

reprex::reprex(si = TRUE)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugan unexpected problem or unintended behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions