AudioMuse-AI icon indicating copy to clipboard operation
AudioMuse-AI copied to clipboard

[FEEDBACK] Minimum size filtering kills all generated playlists

Open jekkkk opened this issue 1 year ago • 1 comments

1. What were you trying to do? Cluster playlists from 47 albums (846 songs)

2. What did you like? It did something on the first run but any run now doesn't output anything. It was a bit ago and I'm not sure if I changed any settings since.

3. What was confusing or could be improved? It should be giving playlists but it looks like the minimum size filter is filtering them all but not sure which exact setting would help that. It is probably a setting and not a lack of music as 846 should be plenty and like I said, it produced something before and I've only added music.

4. Task Parameters You Used (Very Important!)

  • Analysis Task:

    • NUM_RECENT_ALBUMS: 47
  • Clustering Task:

    • ENABLE_CLUSTERING_EMBEDDINGS: True
    • CLUSTER_ALGORITHM: kmeans
    • NUM_CLUSTERS_MIN / MAX: 40/100
    • CLUSTERING_RUNS: 5000
    • SCORE_WEIGHT_DIVERSITY / SCORE_WEIGHT_PURITY: 2/1
    • AI_MODEL_PROVIDER: OLLAMA (mistral:7b)

Finished task log: { "best_params": { "clustering_method_config": { "method": "kmeans", "params": { "n_clusters": 93 } }, "max_songs_per_cluster": 100, "pca_config": { "components": 2, "enabled": true }, "run_id": 2645 }, "best_score": 19.896215175698966, "log": [ "[2025-10-29 01:00:02] Before duplicate filtering: 93 playlists", "[2025-10-29 01:00:02] After duplicate filtering: 93 playlists", "[2025-10-29 01:00:02] Applying minimum size filter (>= 20 songs)...", "[2025-10-29 01:00:02] Before minimum size filtering: 93 playlists", "[2025-10-29 01:00:02] After minimum size filtering: 0 playlists", "[2025-10-29 01:00:02] Post-processing complete: 93 -> 0 playlists", "[2025-10-29 01:00:02] Best clustering found with score: 19.90. Creating playlists...", "[2025-10-29 01:00:02] Deleting existing automatic playlists...", "[2025-10-29 01:00:02] Creating 0 new playlists...", "[2025-10-29 01:00:02] Clustering task completed successfully!" ], "num_playlists_created": 0, "running_parameters": { "clustering_method": "kmeans", "num_clusters_max": 100, "num_clusters_min": 40, "pca_components_max": 199, "pca_components_min": 0, "score_weights": { "calinski_harabasz": 0, "davies_bouldin": 0, "mood_diversity": 2, "mood_purity": 1, "other_feature_diversity": 0, "other_feature_purity": 0, "silhouette": 0 }, "stratification_percentile": 50, "top_n_playlists": 8, "use_embeddings": true }, "status_message": "Clustering task completed successfully!" }

5. Any Other Thoughts or Ideas? It's probably a single setting that is messing things up and I'm just stupid. Clustering just takes so long and I can't find any easy fix so I'm putting it here. Thanks!

jekkkk avatar Oct 29 '25 01:10 jekkkk

Thanks for reaching me. Have a look to the FAQ here on how to change parameter in the advanced wiew to avoid empty cluster:

https://github.com/NeptuneHub/AudioMuse-AI/blob/main/docs/FAQ.md#clustering-returns-empty-playlist-or-with-only-a-few-songs-how-can-i-fix-this

To say in short there was user that suggested to SKIP too small playlist. So at some point I added a filter to avoid playlist with less than 20 song.

You are having empty playlist because with the actual setting, and your small number of song (it is configured to work on like 50k+ song) you are having too many playlist all with few song.

You need to play with the parameter to have less playlist but with more songs in it.

NeptuneHub avatar Oct 29 '25 11:10 NeptuneHub