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 Emulator on Reinitialization #255

Closed sweep-ai[bot] closed 1 year ago

sweep-ai[bot] commented 1 year ago

This PR addresses issue #253. The ExperimentalEmulator was being retrained every time it was reinitialized. To prevent this, a condition has been added in the train method to check if the model has already been trained. If it has, the training process is skipped. This ensures that the emulator is not unnecessarily retrained, saving computational resources and time.

Fixes #253.