mirror of
https://github.com/marvinscham/masterthesis-playground.git
synced 2026-03-22 08:22:43 +01:00
BERTopic cleanup
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user