redback.transient_models.learned_models.make_learned_model_callable

redback.transient_models.learned_models.make_learned_model_callable(model)[source]

This function takes in a LearnedSurrogateModel instance and returns a callable function that can be used to evaluate the model given time and parameters.

The function’s signature will match the expected format for redback with time as the first argument, followed by each of the model parameters and then any additional keyword arguments.

Parameters:

model – LearnedSurrogateModel instance

Returns:

Callable function to evaluate the model