restarting surr.fit() from a sys_error.pkl file should pick up right where it left off
Actual Behavior
if the the previous fit() failed due to an error in update_interpolator, then the index and candidate sets get messed up due to an early update of comp.surrogates dictionary.
Steps to Reproduce the Problem
Call surr.fit() and force a failure in the component model, which will cause update_interpolator() to fail
Try to restart surr.fit() from the sys_error.pkl file
Ideas
Can probably put the update_interpolator() right after the build_interpolator call in comp.add_surrogate. No data structures should get updated until we absolutely know the new candidate index has been built properly.
Expected Behavior
surr.fit()
from asys_error.pkl
file should pick up right where it left offActual Behavior
fit()
failed due to an error in update_interpolator, then the index and candidate sets get messed up due to an early update ofcomp.surrogates
dictionary.Steps to Reproduce the Problem
surr.fit()
and force a failure in the component model, which will causeupdate_interpolator()
to failsurr.fit()
from thesys_error.pkl
fileIdeas
update_interpolator()
right after thebuild_interpolator
call incomp.add_surrogate
. No data structures should get updated until we absolutely know the new candidate index has been built properly.