From 765d7654f49edb18bd0055f571fe192bca06c764 Mon Sep 17 00:00:00 2001 From: Daniel Knuettel Date: Tue, 27 Jun 2023 10:16:14 +0200 Subject: [PATCH] initialized history of base_iterative in __init__; when iterative algorithms are not used yet, the history should be empty, not non-existing --- lib/gpt/algorithms/base.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/gpt/algorithms/base.py b/lib/gpt/algorithms/base.py index b7591e55a..8811dfc29 100644 --- a/lib/gpt/algorithms/base.py +++ b/lib/gpt/algorithms/base.py @@ -70,6 +70,7 @@ def __init__(self, name=None): super().__init__(name) self.verbose_convergence = gpt.default.is_verbose(self.name + "_convergence") self.converged = None + self.history = [] def log_convergence(self, iteration, value, target=None): if (type(iteration) == int and iteration == 0) or (