mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-13 14:03:20 +02:00
[optimizer array] bugfix, when updating the model the optimizer array would not update
This commit is contained in:
parent
94bff66c7b
commit
66390cbf8a
1 changed files with 5 additions and 1 deletions
|
|
@ -986,6 +986,11 @@ class Parameterizable(OptimizationHandlable):
|
||||||
# notification system
|
# notification system
|
||||||
#===========================================================================
|
#===========================================================================
|
||||||
def _parameters_changed_notification(self, me, which=None):
|
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()
|
self.parameters_changed()
|
||||||
def _pass_through_notify_observers(self, me, which=None):
|
def _pass_through_notify_observers(self, me, which=None):
|
||||||
self.notify_observers(which=which)
|
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``
|
updates get passed through. See :py:function:``GPy.core.param.Observable.add_observer``
|
||||||
"""
|
"""
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue