mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-04-29 23:06:22 +02:00
Exception fixes for Python 3 compat
This commit is contained in:
parent
70c8f4a410
commit
c4fb58176d
8 changed files with 25 additions and 25 deletions
|
|
@ -30,7 +30,7 @@ class Model(Parameterized):
|
|||
self.add_observer(self.tie, self.tie._parameters_changed_notification, priority=-500)
|
||||
|
||||
def log_likelihood(self):
|
||||
raise NotImplementedError, "this needs to be implemented to use the model class"
|
||||
raise NotImplementedError("this needs to be implemented to use the model class")
|
||||
def _log_likelihood_gradients(self):
|
||||
return self.gradient.copy()
|
||||
|
||||
|
|
@ -119,7 +119,7 @@ class Model(Parameterized):
|
|||
|
||||
DEPRECATED.
|
||||
"""
|
||||
raise DeprecationWarning, 'parameters now have default constraints'
|
||||
raise DeprecationWarning('parameters now have default constraints')
|
||||
|
||||
def objective_function(self):
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue