Skip to content

Commit

Permalink
Merge branch 'master' into dependabot/github_actions/pypa/cibuildwhee…
Browse files Browse the repository at this point in the history
…l-2.22.0
  • Loading branch information
relf authored Dec 4, 2024
2 parents 22ac2b1 + 571c842 commit 12b0481
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions smt/applications/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
from .vfm import VFM
from .podi import PODI, SubspacesInterpolation
from .cckrg import CoopCompKRG
from .tests.test_mixed_integer import TestMixedInteger

__all__ = [
"VFM",
Expand All @@ -23,5 +22,4 @@
"PODI",
"SubspacesInterpolation",
"CoopCompKRG",
"TestMixedInteger",
]
2 changes: 0 additions & 2 deletions smt/surrogate_models/krg_based.py
Original file line number Diff line number Diff line change
Expand Up @@ -1855,8 +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!
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!
Expand Down

0 comments on commit 12b0481

Please sign in to comment.