From 66390cbf8aa7fde4e1fa3f04f4022aa3f63345bf Mon Sep 17 00:00:00 2001 From: mzwiessele Date: Wed, 25 Jun 2014 09:32:47 -0700 Subject: [PATCH] [optimizer array] bugfix, when updating the model the optimizer array would not update --- GPy/core/parameterization/parameter_core.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/GPy/core/parameterization/parameter_core.py b/GPy/core/parameterization/parameter_core.py index 8812f37f..4a315f5d 100644 --- a/GPy/core/parameterization/parameter_core.py +++ b/GPy/core/parameterization/parameter_core.py @@ -986,6 +986,11 @@ class Parameterizable(OptimizationHandlable): # notification system #=========================================================================== def _parameters_changed_notification(self, me, which=None): + """ + In parameterizable we just need to make sure, that the next call to optimizer_array + will update the optimizer_array to the latest parameters + """ + self._optimizer_copy_transformed = False # tells the optimizer array to update on next request self.parameters_changed() def _pass_through_notify_observers(self, me, which=None): self.notify_observers(which=which) @@ -1017,4 +1022,3 @@ class Parameterizable(OptimizationHandlable): updates get passed through. See :py:function:``GPy.core.param.Observable.add_observer`` """ pass -