You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running the first example of kriging in the tutorial (reproduced here)
fromsmt.utils.miscimportcompute_rms_errorfromsmt.problemsimportRosenbrockfromsmt.sampling_methodsimportLHSfromsmt.surrogate_modelsimportKRGndim=2ndoe=20# int(10*ndim)# Define the functionfun=Rosenbrock(ndim=ndim)
# Construction of the DOE# in order to have the always same LHS points, random_state=1sampling=LHS(xlimits=fun.xlimits, criterion="ese", random_state=1)
xt=sampling(ndoe)
# Compute the outputsyt=fun(xt)
# Construction of the validation pointsntest=200# 500sampling=LHS(xlimits=fun.xlimits, criterion="ese", random_state=1)
xtest=sampling(ntest)
ytest=fun(xtest)
# The variable 'theta0' is a list of length ndim.t=KRG(theta0=[1e-2] *ndim, print_prediction=False)
t.set_training_values(xt, yt[:, 0])
t.train()
# Prediction of the validation pointsy=t.predict_values(xtest)
print("Kriging, err: "+str(compute_rms_error(t, xtest, ytest)))
I get the following output
python test_warning.py
___________________________________________________________________________
Kriging
___________________________________________________________________________
Problem size
# training points. : 20
___________________________________________________________________________
Training
Training ...
D:\rlafage\workspace\smt\smt\surrogate_models\krg_based.py:968: UserWarning: R is too ill conditioned. Poor combination of regression model and observations.
warnings.warn(
Training - done. Time (sec): 7.4901881
Kriging, err: 0.00010937725926990396
While the error is pretty small we have this warning telling us something is wrong which is a pretty confusing.
The text was updated successfully, but these errors were encountered:
When running the first example of kriging in the tutorial (reproduced here)
I get the following output
While the error is pretty small we have this warning telling us something is wrong which is a pretty confusing.
The text was updated successfully, but these errors were encountered: