mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-21 14:05:14 +02:00
checkgrad (╯°□°)╯︵ ┻━┻
This commit is contained in:
parent
9af4c34f90
commit
ffd09c7820
4 changed files with 9 additions and 5 deletions
|
|
@ -455,8 +455,8 @@ class Model(Parameterized):
|
|||
if self._has_fixes():
|
||||
indices = np.r_[:self.size]
|
||||
which = (param_index[:,None]==indices[self._fixes_][None,:]).nonzero()
|
||||
transformed_index = (indices-(~self._fixes_).cumsum())[which[1]]
|
||||
param_index = indices[which[0]]
|
||||
param_index = param_index[which[0]]
|
||||
transformed_index = (indices-(~self._fixes_).cumsum())[param_index]
|
||||
print param_index, transformed_index
|
||||
else:
|
||||
transformed_index = param_index
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue