finalize_model_tidyclust {tidyclust} | R Documentation |
Splice final parameters into objects
Description
The finalize_*
functions take a list or tibble of tuning parameter values
and update objects with those values.
Usage
finalize_model_tidyclust(x, parameters)
finalize_workflow_tidyclust(x, parameters)
Arguments
x |
A recipe, |
parameters |
A list or 1-row tibble of parameter values. Note that the
column names of the tibble should be the |
Value
An updated version of x
.
Examples
kmeans_spec <- k_means(num_clusters = tune())
kmeans_spec
best_params <- data.frame(num_clusters = 5)
best_params
finalize_model_tidyclust(kmeans_spec, best_params)
[Package tidyclust version 0.2.3 Index]