sustainable-processes / summit

Optimising chemical reactions using machine learning
https://gosummit.readthedocs.io/en/latest/
MIT License
118 stars 24 forks source link

Prevent Retraining of ExperimentalEmulator on Initialization #254

Closed sweep-ai[bot] closed 1 year ago

sweep-ai[bot] commented 1 year ago

This PR addresses the issue of the ExperimentalEmulator being retrained on reinitialization. The ExperimentalEmulator class itself does not retrain the model during initialization. However, it was found that in some parts of the codebase, the emulator was being reinitialized and retrained in a loop, which was unnecessary and could lead to performance issues.

Changes made:

These changes should prevent the unnecessary retraining of the ExperimentalEmulator and improve the performance of the code.

Fixes #253.