extract_layers | R Documentation |
These functions are mainly internal. They can access and validate
different layers of frosting
.
extract_layers(x, ...)
## S3 method for class 'frosting'
extract_layers(x, ...)
## S3 method for class 'workflow'
extract_layers(x, ...)
is_layer(x)
validate_layer(x, ..., arg = rlang::caller_arg(x), call = caller_env())
detect_layer(x, name, ...)
## S3 method for class 'frosting'
detect_layer(x, name, ...)
## S3 method for class 'workflow'
detect_layer(x, name, ...)
x |
an |
... |
additional arguments for possible future methods |
arg |
the name of the input (for error reporting) |
call |
the environment (for error reporting) |
name |
a layer name to detect |
A logical for the validators/detectors or a list of layers for the extractors
f <- frosting() %>% layer_predict()
wf <- epi_workflow(postprocessor = f)
is_layer(layer("what_the_what"))
detect_layer(f, "layer_predict")
detect_layer(wf, "layer_predict")
extract_layers(f)
extract_layers(wf)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.