mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-03 00:32:39 +02:00
changed the behaviour of checkgrad
checkgrad usd to check the passed string (for name matching) against the list of _get_param_names(). Then it would index along _get_param_names_transformed()! this led to inconsistensies when fixed or tied variables were used, which screwed up the ordering of the variable names. We now match against _get_param_names_transformed().
This commit is contained in:
parent
903e66486d
commit
dea4359b4e
3 changed files with 48 additions and 29 deletions
|
|
@ -392,7 +392,11 @@ class model(parameterised):
|
|||
if target_param is None:
|
||||
param_list = range(len(x))
|
||||
else:
|
||||
param_list = self.grep_param_names(target_param)
|
||||
param_list = self.grep_param_names(target_param, transformed=True, search=True)
|
||||
if not param_list:
|
||||
print "No free parameters to check"
|
||||
return
|
||||
|
||||
|
||||
for i in param_list:
|
||||
xx = x.copy()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue