translate_celery: Resolve a Model Specification for a Computational Engine

View source: R/translate.R

translate_celeryR Documentation

Resolve a Model Specification for a Computational Engine

Description

translate_celery() will translate_celery a model specification into a code object that is specific to a particular engine (e.g. R package). It translate_celerys generic parameters to their counterparts.

Usage

translate_celery(x, ...)

## Default S3 method:
translate_celery(x, engine = x$engine, ...)

Arguments

x

A model specification.

...

Not currently used.

engine

The computational engine for the model (see ?set_engine_celery).

Details

translate_celery() produces a template call that lacks the specific argument values (such as data, etc). These are filled in once fit() is called with the specifics of the data for the model. The call may also include tune() arguments if these are in the specification. To handle the tune() arguments, you need to use the tune package. For more information see https://www.tidymodels.org/start/tuning/

It does contain the resolved argument names that are specific to the model fitting function/engine.

This function can be useful when you need to understand how celery goes from a generic model specific to a model fitting function.

Note: this function is used internally and users should only use it to understand what the underlying syntax would be. It should not be used to modify the cluster specification.


kbodwin/celery documentation built on March 26, 2022, 12:33 a.m.