Software
tidyclust

tidyclust

A tidy unified interface to clustering models

R

tidyclust provides a unified interface for clustering models in R, following the same design principles as the tidymodels parsnip package. It allows you to specify, fit, and work with various clustering algorithms using consistent syntax and workflows.

The package supports multiple clustering algorithms (like k-means, hierarchical clustering, and others) through a common API. It integrates with the tidymodels ecosystem, making it straightforward to extract cluster assignments, centroids, and predictions using standard functions like fit(), predict(), and helper functions like extract_cluster_assignment() and extract_centroids(). This consistent interface eliminates the need to learn different function names and argument structures for each clustering implementation.

Contributors