Skip to content

Commit

Permalink
EDIT: np.Inf -> np.inf for numpy v2
Browse files Browse the repository at this point in the history
  • Loading branch information
ctgk committed Sep 12, 2024
1 parent 5fa009a commit 8050986
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion prml/kernel/gaussian_process_regressor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
2 changes: 1 addition & 1 deletion prml/kernel/support_vector_classifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8050986

Please sign in to comment.