Exception fixes for Python 3 compat

This commit is contained in:
Mike Croucher 2015-02-26 13:43:55 +00:00
parent f961520c42
commit 2b8ef1041b
2 changed files with 3 additions and 3 deletions

View file

@ -203,7 +203,7 @@ class Likelihood(Parameterized):
def _conditional_mean(self, f): def _conditional_mean(self, f):
"""Quadrature calculation of the conditional mean: E(Y_star|f)""" """Quadrature calculation of the conditional mean: E(Y_star|f)"""
raise NotImplementedError, "implement this function to make predictions" raise NotImplementedError("implement this function to make predictions")
def predictive_variance(self, mu,variance, predictive_mean=None, Y_metadata=None): def predictive_variance(self, mu,variance, predictive_mean=None, Y_metadata=None):
""" """

View file

@ -182,7 +182,7 @@ class Heaviside(GPTransformation):
return np.where(f>0, 1, 0) return np.where(f>0, 1, 0)
def dtransf_df(self,f): def dtransf_df(self,f):
raise NotImplementedError, "This function is not differentiable!" raise NotImplementedError("This function is not differentiable!")
def d2transf_df2(self,f): def d2transf_df2(self,f):
raise NotImplementedError, "This function is not differentiable!" raise NotImplementedError("This function is not differentiable!")