From fd3d623084f4a94b034c7cc29393b5b24fedd492 Mon Sep 17 00:00:00 2001 From: reinterpretcat Date: Sun, 6 Oct 2024 21:38:34 +0200 Subject: [PATCH] Refactor experiment scripts --- experiments/etc/shared.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/experiments/etc/shared.py b/experiments/etc/shared.py index b2e538ec3..cdb7c6a34 100644 --- a/experiments/etc/shared.py +++ b/experiments/etc/shared.py @@ -62,9 +62,9 @@ def solve_scientific(self, scientific_format, problem_path, config_path, solutio raise ValueError('cannot get solution statistic') # expected: - # rank: 0, fitness: (0.000, 92.000, 53389.603), + # fitness: (0.000, 92.000, 53389.603), for best in re.finditer( - r"rank: 0, fitness: \((?P[\d.]+),?\s*(?P[\d.]+)?\s*, (?P[\d.]+)\)", + r"fitness: \((?P[\d.]+),?\s*(?P[\d.]+)?\s*, (?P[\d.]+)\)", p.stdout): pass