Skip to contents

Create a kmeans clustering model

Usage

bt_make_clusterer_kmeans(..., n_clusters = 10L)

Arguments

...

Additional arguments sent to sklearn.cluster.KMeans()

n_clusters

number of clusters to search for (enter as integer by typing L after the number)

Value

A kMeans clustering model (Python object)

Examples

# models with different values for number of clusters
clustering_model <- bt_make_clusterer_kmeans(n_clusters = 15L)
clustering_model <- bt_make_clusterer_kmeans(n_clusters = 10L)

# specifying additional arguments
clustering_model <- bt_make_clusterer_kmeans(n_clusters = 10L, verbose = TRUE)