How to load 'best' model/emulator after training #708
-
Hi, I loosely followed the quickstart example where we have some training data and find the best emulator doing something like: from autoemulate.core.compare import AutoEmulate
from autoemulate.emulators import GaussianProcess
ae = AutoEmulate(x_train, y_train, log_level="progress_bar", models=[GaussianProcess])
print(ae.summarise())
best = ae.best_result()
best_result_filepath = ae.save(best, "ae_best", use_timestamp=True) I then want to use the best emulator in another downstream application, but it seems that I cannot do that without retraining the model. E.g., the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Hi @jvwilliams23! You do not need to retrain the model. The trained model has been saved in the results object and can be accessed as |
Beta Was this translation helpful? Give feedback.
Hi @radka-j
Yes, but I mean how to use the model in a different script at inference time. I think I found the answer:
I am not sure if this is the best/intended usage, since the function is prefixed with
_
(_load_result
) which usually means it is a private function.If I give
ModelSe…