mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-13 05:52:38 +02:00
[vardtc missing] performance fixes
This commit is contained in:
parent
66390cbf8a
commit
83e2df838d
2 changed files with 18 additions and 36 deletions
|
|
@ -874,6 +874,9 @@ class Parameterizable(OptimizationHandlable):
|
|||
"""
|
||||
Array representing the parameters of this class.
|
||||
There is only one copy of all parameters in memory, two during optimization.
|
||||
|
||||
!WARNING!: setting the parameter array MUST always be done in memory:
|
||||
m.param_array[:] = m_copy.param_array
|
||||
"""
|
||||
if self.__dict__.get('_param_array_', None) is None:
|
||||
self._param_array_ = np.empty(self.size, dtype=np.float64)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue