Closed hshany closed 1 year ago
(Re)building and (re)fitting the error model is near-deterministic because the corresponding residuals and scores are saved, so it is basically just redoing the curve-fit.
Adding this to the TODO:
It's not only about the curve-fitting. In the example above which uses BootstrapEnsemble as the scoring model, it appears that the ensemble of models are getting retrained during rebuilding, which takes a long time and doesn't seem necessary.
Thank you for bringing this to our attention. The original code snippet you posted now should work without the time-intensive retraining of the ensemble. Fixed in PR #89 and subsequent patches.
We will make a pypi release shortly, until then this can be solved by installing as such:
pip install --upgrade "olorenchemengine[full] @ git+https://github.com/Oloren-AI/olorenchemengine.git"
When loading a saved model with error model, the error model is always getting rebuilt and refitted. How can one save the model along with the trained error model?
This is how I save and load the model: