View source: R/engine-registry.R
| register_engine | R Documentation |
Allows third-party packages to register custom engines with
fit_model(). This enables an extensible plugin architecture
similar to 'parsnip' engine registration.
register_engine(
name,
fit_fn,
description = "",
type = "frequentist",
time_varying = FALSE
)
name |
Engine name (character scalar). |
fit_fn |
Function with signature |
description |
One-line description of the engine. |
type |
|
time_varying |
Logical; does the engine support time-varying growth advantages? |
Invisibly returns the updated engine registry.
# Register a custom engine
my_engine <- function(data, pivot = NULL, ci_level = 0.95, ...) {
# Custom implementation...
.engine_mlr(data, pivot = pivot, ci_level = ci_level, ...)
}
register_engine("my_mlr", my_engine, "Custom MLR wrapper")
lfq_engines()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.