From 8050986826c16003a7ee95035c15b08ae5ab75c9 Mon Sep 17 00:00:00 2001 From: ctgk Date: Thu, 12 Sep 2024 19:43:12 +0900 Subject: [PATCH] EDIT: `np.Inf` -> `np.inf` for numpy v2 --- prml/kernel/gaussian_process_regressor.py | 2 +- prml/kernel/support_vector_classifier.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/prml/kernel/gaussian_process_regressor.py b/prml/kernel/gaussian_process_regressor.py index 981d26bd6..4f1aa94fd 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 4a6c72116..c476b546d 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