summaryrefslogtreecommitdiff
path: root/bjoern/videoanalyse/eval.py
diff options
context:
space:
mode:
authorNiclas Dobbertin <niclas.dobbertin@stud.tu-darmstadt.de>2023-10-02 19:11:24 +0200
committerNiclas Dobbertin <niclas.dobbertin@stud.tu-darmstadt.de>2023-10-02 19:11:24 +0200
commitddab7c6cc5ba7e785aadb224f294284b0564acd6 (patch)
tree11e2eab853ee35a9d621c5d350cde9cfc9f74393 /bjoern/videoanalyse/eval.py
parent7266e2787bfa661d490be9c4463e707e6ffe1715 (diff)
refactor post processing into single script
Diffstat (limited to 'bjoern/videoanalyse/eval.py')
-rw-r--r--bjoern/videoanalyse/eval.py29
1 files changed, 0 insertions, 29 deletions
diff --git a/bjoern/videoanalyse/eval.py b/bjoern/videoanalyse/eval.py
deleted file mode 100644
index a917b7a..0000000
--- a/bjoern/videoanalyse/eval.py
+++ /dev/null
@@ -1,29 +0,0 @@
-#!/usr/bin/env python3
-
-import argparse
-from pathlib import Path
-import pandas as pd
-import csv
-from Levenshtein import distance as levendist
-
-
-argparser = argparse.ArgumentParser(
- description="Distance evaluation"
-)
-argparser.add_argument(
- "vp_dir", help="Directory containing merged.csv"
-)
-
-args = argparser.parse_args()
-
-vp_path = Path(args.vp_dir)
-
-df = pd.read_csv(vp_path / "merged.csv")
-
-df["levenshtein-distance"] = df.apply(
- lambda row: levendist(str(row.url), str(row.log_url)), axis=1
-)
-
-
-
-df.to_csv(vp_path / "metrics.csv", quoting=csv.QUOTE_NONNUMERIC)