fixed soup_basin experiment

This commit is contained in:
ru43zex
2021-06-05 17:44:37 +03:00
parent 0320957b85
commit 2077d800ae
6 changed files with 121 additions and 91 deletions

View File

@ -88,8 +88,7 @@ class SoupExperiment:
# Testing for fixpoints after each batch of ST steps to see relevant data
if i % self.ST_steps == 0:
test_for_fixpoints(self.fixpoint_counters, self.population)
fixpoints_percentage = round((self.fixpoint_counters["fix_zero"] + self.fixpoint_counters["fix_weak"] +
self.fixpoint_counters["fix_sec"]) / self.population_size, 1)
fixpoints_percentage = round(self.fixpoint_counters["identity_func"] / self.population_size, 1)
self.fixpoint_counters_history.append(fixpoints_percentage)
# Resetting the fixpoint counter. Last iteration not to be reset -