Function visualize_clusters

Saves sequences per cluster in a text file.

Saves sequences per cluster in a text file and visualizes the sequences for individual clusters with object previews and save them as images.

This function 1) saves for each cluster a list of sequences that belong to that cluster and their difficulty and feature vectors. 2) plots (if config.show_visualization == 1) a figures illustrating all seaquences for each cluster with sequence difficulty, attributes distribution and object preview for each sequence.

Input:

Output: