You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
library(tidyclust)
library(tidyverse)
library(tidymodels)
data("penguins", package="modeldata")
penguins<-penguins %>%
drop_na()
penguins_cv<- vfold_cv(penguins, v=5)
# spec1 is for a non-tunable modelkmeans_spec1<- k_means(engine='clustMixType', num_clusters=4)
penguins_rec<- recipe(~.,
data=penguins
)
kmeans_wflow1<- workflow(penguins_rec, kmeans_spec1)
# non tunable clustering fitkmeans_fit<- fit(kmeans_wflow1, data=penguins)
# this works without errors
sse_within_total(kmeans_fit)
# this also works
sse_within_total(kmeans_fit, dist_fun=cluster::daisy)
The text was updated successfully, but these errors were encountered:
Here it is taken from https://stackoverflow.com/questions/78540316/r-tidyclust-tune-a-k-prototypes-model/78540444#78540444, which hides the improper use of `cluster::daisy()~
The text was updated successfully, but these errors were encountered: