Skip to content

fit.workflow() errors uninformatively if mode is required but not set #160

@EmilHvitfeldt

Description

@EmilHvitfeldt
library(tidymodels)

bag_spec <- decision_tree() %>%
  set_engine("C5.0")

workflow(mpg ~ ., bag_spec) %>% 
  fit(mtcars)
#> Error in `pull_workflow_spec_encoding_tbl()`:
#> ! Exactly 1 model/engine/mode combination must be located.
#> ℹ This is an internal error in the workflows package, please report it to the package authors.

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