Skip to content

Challenges using all_nominal() and all_numeric() #620

@juliasilge

Description

@juliasilge

We have lots of examples of folks having trouble with all_nominal() and all_numeric() when they accidentally select outcomes or other non-predictors. Mine talked about running into this during teaching, and here is one example of many from the general user base. A significant challenge is that because of how/when these steps are evaluated, the error message is often opaque.

What would be a good way to reduce this friction?

  • Should all_nominal() and all_numeric() only select predictors?
  • Should these be replaced by new selectors like all_nominal_preds() and all_numeric_preds()?
  • Some recipe steps are more prone to this problem, like step_dummy(). Protections at the step level?
  • Something else?

Metadata

Metadata

Assignees

No one assigned

    Labels

    featurea feature request or enhancement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions