From 0172d95c3cdaa1c599f498d6ca555d08e524389e Mon Sep 17 00:00:00 2001 From: Paul-Saves Date: Mon, 2 Dec 2024 18:21:12 +0100 Subject: [PATCH] remove small variance warning --- 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 cf56906bd..8fbb9e4cf 100644 --- a/smt/surrogate_models/krg_based.py +++ b/smt/surrogate_models/krg_based.py @@ -1856,7 +1856,6 @@ def _predict_variances( 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! - B[B < 1e-12] = 0 s2 = np.einsum("i,j -> ji", A, B) # Mean Squared Error might be slightly negative depending on # machine precision: force to zero!