Closed ilaudo closed 2 months ago
Did you change the SMT version? What version do you use? Looks like your pickle files were generated with an old version without the design_space
property which was added in release 2.0. Either you retrain your models and save the pickle files with your current version (2.x?) of SMT or you downgrade to the version (1.3?) you used to generate the pickles.
Hello there, I am trying to implement the KRG() function into an optimal control problem using Dymos. I have trained my Kriging models on a large set of data which requires three inputs and one output. However, each time that I try to call the
.predict_values()
method in my optimal control code, I receive a KeyError: 'design_space'. My guess thusfar is that the kriging models do not believe they have been trained on continuous data, however, I am unsure. It should be noted that I have my Kriging models saved in .pickle files to prevent them from being retrained each iteration. This code worked perfectly fine up until one day ago, in which it started acting rather odd. I appreciate the help! Here is the function call I use:CL = smt.predict_values(inputValues)
whereinputValues
has a dimension of(nn, 3)
andCL
has a dimension of(nn, 1)
.Here is the full error printout: Traceback (most recent call last):