From f1b634b20b893b0c01970f8305d8528aa7bcebd6 Mon Sep 17 00:00:00 2001 From: Rekai Musuka Date: Tue, 7 Jun 2022 15:05:34 -0300 Subject: [PATCH] chore: old thing --- 2021-08-18/nichol_help/main.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 2021-08-18/nichol_help/main.py diff --git a/2021-08-18/nichol_help/main.py b/2021-08-18/nichol_help/main.py new file mode 100644 index 0000000..7fc9034 --- /dev/null +++ b/2021-08-18/nichol_help/main.py @@ -0,0 +1,15 @@ +import re; + +def main(): + file = open("anova_rf-0.txt", "r") + + val_acc_rgx = re.compile("val_acc:\s\d\.\d{4}") + + for line in file.readlines(): + m = val_acc_rgx.search(line) + + if m: + print(float(m.group(0).split(" ")[1])) + +if __name__ == "__main__": + main() \ No newline at end of file