pattern_clustering.html.clusters_to_row_formatter
- clusters_to_row_formatter(map_row_cluster: dict, map_cluster_color: dict) RowFormatter[source]
Builds a
RowFormatterfrom clustering results.- Parameters
map_row_cluster (dict) – Maps each row (
int) with the corresponding cluster ID (any hashable type).map_cluster_color (dict) – Maps each cluster ID (any hashable type) with the corresponding HTML color (
str).
- Returns
The corresponding
RowFormatter.