Closed kallewesterling closed 4 months ago
Hey @bryanlimy -- do you have a status update on this one?
I add cv_results=None
in https://github.com/alan-turing-institute/autoemulate/blob/5c743a4b34bd4197da8424419b7ec42a7fddfa6a/autoemulate/cross_validate.py#L20 https://github.com/alan-turing-institute/autoemulate/pull/180 so that it won't through an error when cv_results
is not initialized (due to Exception
), we will have to improve error message in general. I don't think there is a "fix" for this issue.
Note: decided to close this issue and open a separate one about the improvement of the error message.
handle the case where an
Exception
is raised incv_results = cross_validate()
, which enters theexcept
block, but we still returnscv_results
which does not exist at that point.