diff --git a/prml/kernel/gaussian_process_regressor.py b/prml/kernel/gaussian_process_regressor.py index 981d26bd..4f1aa94f 100644 --- a/prml/kernel/gaussian_process_regressor.py +++ b/prml/kernel/gaussian_process_regressor.py @@ -46,7 +46,7 @@ def fit(self, X, t, iter_max=0, learning_rate=0.1): """ if X.ndim == 1: X = X[:, None] - log_likelihood_list = [-np.Inf] + log_likelihood_list = [-np.inf] self.X = X self.t = t I = np.eye(len(X)) diff --git a/prml/kernel/support_vector_classifier.py b/prml/kernel/support_vector_classifier.py index 4a6c7211..c476b546 100644 --- a/prml/kernel/support_vector_classifier.py +++ b/prml/kernel/support_vector_classifier.py @@ -3,7 +3,7 @@ class SupportVectorClassifier(object): - def __init__(self, kernel, C=np.Inf): + def __init__(self, kernel, C=np.inf): """ construct support vector classifier