clu_tune | R Documentation |
Creates an object for tuning clustering models. This object can be used to fit and optimize clustering algorithms by specifying hyperparameter ranges
clu_tune(base_model, folds = 10, ranges = NULL)
base_model |
base model for tuning |
folds |
number of folds for cross-validation |
ranges |
a list of hyperparameter ranges to explore |
returns a clu_tune
object.
data(iris)
# fit model
model <- clu_tune(cluster_kmeans(k = 0), ranges = list(k = 1:10))
model <- fit(model, iris[,1:4])
model$k
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.