We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1db527a commit b68473fCopy full SHA for b68473f
src/hiopbbpy/surrogate_modeling/krg.py
@@ -60,3 +60,7 @@ def variance_gradient(self, x: np.ndarray) -> np.ndarray:
60
if not self.trained:
61
raise ValueError("must train kriging model before utilizing it to predict gradient")
62
return self.surrogatesmt.predict_variance_gradient(x)
63
+
64
+ def set_nugget(self, nugget):
65
+ assert nugget >= 0., "nugget value must be non-negative"
66
+ self.surrogatesmt.options["nugget"] = nugget
0 commit comments