BERTopic cleanup

This commit is contained in:
2026-02-08 22:43:53 +01:00
parent b2da597b18
commit c98a1d0c6e
8 changed files with 1400 additions and 61 deletions

View File

@@ -2,12 +2,12 @@ import json
import matplotlib.pyplot as plt
with open("history.json", "r") as f:
with open("output/autotune.json", "r") as f:
history = json.load(f)
history = sorted(history, key=lambda x: x["metrics"]["combined_score"], reverse=True)
history = sorted(history, key=lambda x: x["metrics"]["combined_score"], reverse=False)
with open("history_sorted.json", "w") as f:
with open("output/autotune_sorted.json", "w") as f:
json.dump(history, f, indent=2)