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