Skip to content

tidyclust integration notes #176

Closed
Closed
@DavisVaughan

Description

@DavisVaughan

Rather than making the most minimal change possible, I think it will be better for the long term code health of workflows to add tidyclust as a new model "action" (this is what actions were intended for anyways). This allows you:

  • To isolate the tidyclust changes (for the most part) in fit-action-model-tidyclust.R
  • To add a new add_model_tidyclust() API that is simpler and separate from add_model() (i.e. no formula argument for model formulas)
  • To use check_conflicts() to ensure that the user can't add both a tidyclust model and a parsnip model to the workflow
    • We would add a method for both action_model and action_model_tidyclust types

Rather than Importing or Suggesting tidyclust, since it is so heavy I think we should just use something like dplyr:::import_vctrs() (but not in .onLoad() because we dont know if tidyclust will be installed) to access functions from tidyclust that we need to call. Since we own both packages, I think that this is okay.

Metadata

Metadata

Assignees

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