Skip to content

accept allow_par in control_last_fit() #539

@simonpcouch

Description

@simonpcouch

control_last_fit() doesn't accept an allow_par argument, and sets it to TRUE by default when wrapping control_resamples. This causes issues after last_fit() for models that need native serialization methods to be passed between sessions.

I'd suggest we

  1. add an allow_par argument to control_last_fit(), and
  2. set its default to FALSE

I don't believe 2) would result in any slowdown for last_fit(), as there's only one fit occurring on the train fold of a train/test split. It would also allow users to last_fit() without needing to set allow_par for model engines that require native serialization.

Reprex and more discussion in tidymodels/bonsai#52 (comment).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions