summary refs log tree commit diff stats
path: root/classification/output.py
diff options
context:
space:
mode:
authorChristian Krinitsin <mail@krinitsin.com>2025-06-01 21:35:14 +0200
committerChristian Krinitsin <mail@krinitsin.com>2025-06-01 21:35:14 +0200
commit3e4c5a6261770bced301b5e74233e7866166ea5b (patch)
tree9379fddaba693ef8a045da06efee8529baa5f6f4 /classification/output.py
parente5634e2806195bee44407853c4bf8776f7abfa4f (diff)
downloademulator-bug-study-3e4c5a6261770bced301b5e74233e7866166ea5b.tar.gz
emulator-bug-study-3e4c5a6261770bced301b5e74233e7866166ea5b.zip
clean up repository
Diffstat (limited to 'classification/output.py')
-rw-r--r--classification/output.py12
1 files changed, 0 insertions, 12 deletions
diff --git a/classification/output.py b/classification/output.py
deleted file mode 100644
index 971c3830..00000000
--- a/classification/output.py
+++ /dev/null
@@ -1,12 +0,0 @@
-from os import path, makedirs
-
-def output(text : str, category : str, labels : list, scores : list, identifier : str):
-    file_path = f"output/{category}/{identifier}"
-    makedirs(path.dirname(file_path), exist_ok = True)
-
-    with open(file_path, "w") as file:
-        for label, score in zip(labels, scores):
-            file.write(f"{label}: {score:.3f}\n")
-
-        file.write("\n")
-        file.write(text)