diff options
author | Edoardo Pasca <edo.paskino@gmail.com> | 2019-05-07 10:10:10 +0100 |
---|---|---|
committer | Edoardo Pasca <edo.paskino@gmail.com> | 2019-05-07 10:10:10 +0100 |
commit | 640feb256a172c22ef4ab78f792e214f62ef5beb (patch) | |
tree | 98bc557b3ce7cbfe48d81ea54401c5bffc0364d6 | |
parent | b387e45192bcd2d5381206e24efa0663f2c7c1ec (diff) | |
download | framework-640feb256a172c22ef4ab78f792e214f62ef5beb.tar.gz framework-640feb256a172c22ef4ab78f792e214f62ef5beb.tar.bz2 framework-640feb256a172c22ef4ab78f792e214f62ef5beb.tar.xz framework-640feb256a172c22ef4ab78f792e214f62ef5beb.zip |
allows passing update_objective_interval in creator
-rwxr-xr-x | Wrappers/Python/ccpi/optimisation/algorithms/Algorithm.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Wrappers/Python/ccpi/optimisation/algorithms/Algorithm.py b/Wrappers/Python/ccpi/optimisation/algorithms/Algorithm.py index c923a30..a14378c 100755 --- a/Wrappers/Python/ccpi/optimisation/algorithms/Algorithm.py +++ b/Wrappers/Python/ccpi/optimisation/algorithms/Algorithm.py @@ -52,7 +52,7 @@ class Algorithm(object): self.__loss = [] self.memopt = False self.timing = [] - self.update_objective_interval = 1 + self.update_objective_interval = kwargs.get('update_objective_interval', 1) def set_up(self, *args, **kwargs): '''Set up the algorithm''' raise NotImplementedError() |