Skip to content

Commit

Permalink
Merge pull request SMTorg#159 from jbussemaker/jbussemaker-patch-1
Browse files Browse the repository at this point in the history
Fix bug related to poly option type change.
  • Loading branch information
relf authored Jul 11, 2019
2 parents 9cc0b61 + c357a99 commit 6a8622d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion smt/surrogate_models/krg_based.py
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ def _predict_variances(self, x):

u = linalg.solve_triangular(
self.optimal_par["G"].T,
np.dot(self.optimal_par["Ft"].T, rt) - self.options["poly"](x).T,
np.dot(self.optimal_par["Ft"].T, rt) - self._regression_types[self.options["poly"]](x).T,
)

MSE = self.optimal_par["sigma2"] * (
Expand Down

0 comments on commit 6a8622d

Please sign in to comment.