From 3cdb649e4ea1c146fdf6e34038ce64f6d4910afd Mon Sep 17 00:00:00 2001 From: Paul-Saves Date: Tue, 3 Dec 2024 11:08:48 +0100 Subject: [PATCH] =?UTF-8?q?fix=20comment=C3=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- smt/surrogate_models/krg_based.py | 1 - 1 file changed, 1 deletion(-) diff --git a/smt/surrogate_models/krg_based.py b/smt/surrogate_models/krg_based.py index 8fbb9e4cf..d8c853bb8 100644 --- a/smt/surrogate_models/krg_based.py +++ b/smt/surrogate_models/krg_based.py @@ -1855,7 +1855,6 @@ def _predict_variances( else: A = self.optimal_par["sigma2"] B = 1.0 - (rt**2.0).sum(axis=0) + (u**2.0).sum(axis=0) - # machine precision: force to zero! s2 = np.einsum("i,j -> ji", A, B) # Mean Squared Error might be slightly negative depending on # machine precision: force to zero!