# Workflow Stages

Workflows encompasses the three main stages of the modeling process: pre-processing of data, model fitting, and post-processing of results. This page enumerates the possible operations for each stage that have been implemented to date.

## Pre-processing

The two elements allowed for pre-processing are:

• A standard model formula via add_formula().

• A recipe object via add_recipe().

You can use one or the other but not both.

## Model Fitting

parsnip model specifications are the only option here, specified via add_model().

When using a preprocessor, you may need an additional formula for special model terms (e.g. for mixed models or generalized linear models). In these cases, specify that formula using add_model()’s formula argument, which will be passed to the underlying model when fit() is called.

## Post-processing

Some examples of post-processing the model predictions would be: adding a probability threshold for two-class problems, calibration of probability estimates, truncating the possible range of predictions, and so on.

None of these are currently implemented but will be in coming versions.
{"ft_lang_label":"__label__en","ft_lang_prob":0.82233685,"math_prob":0.8974895,"size":1056,"snap":"2023-14-2023-23","text_gpt3_token_len":211,"char_repetition_ratio":0.123574145,"word_repetition_ratio":0.0,"special_character_ratio":0.19223484,"punctuation_ratio":0.12698413,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9863455,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2023-06-09T11:43:08Z\",\"WARC-Record-ID\":\"<urn:uuid:9423b02d-54df-48b7-aa8e-077081bbbb9e>\",\"Content-Length\":\"8468\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:fba4af7a-c7e8-4d7d-b861-735d8efc7c6b>\",\"WARC-Concurrent-To\":\"<urn:uuid:35ae9c71-d7d8-4fdb-b983-66aaf951660f>\",\"WARC-IP-Address\":\"52.85.151.54\",\"WARC-Target-URI\":\"https://cloud.r-project.org/web/packages/workflows/vignettes/stages.html\",\"WARC-Payload-Digest\":\"sha1:JH4HBMYZGQIKVN4ECQUJ24JUOLGKEALM\",\"WARC-Block-Digest\":\"sha1:QKBJC3PC5ELX7L5ANEJO2ZXHDIPUILH4\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2023/CC-MAIN-2023-23/CC-MAIN-2023-23_segments_1685224656675.90_warc_CC-MAIN-20230609100535-20230609130535-00048.warc.gz\"}"}