You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Could we add an optional parameter to GaussianProcessEmulator.predict_values() which would switch on/off the computation of the variance? That would "just" require to pass return_var=False to the george GP object.
In my use case, returning the variance is 50x slower (60ms vs. 1.2ms) than not returning it. In an emulation MCMC scenario where the PS baryon ratio is just a small component, that is a critical difference.
Getting the full error is only necessary once the chain has converged and then switching on the variance return would suffice.
Happy to have a stab at it.
The text was updated successfully, but these errors were encountered:
I don't like overloading the return values of a function based on an input parameter. But i am more than happy for you to write a predict_values_no_error() or similarly named function. You would need to add it to the abstract base class in base.py and then add corresponding versions to all of the associated classes in emulators/. It shouldn't be too bad.
Could we add an optional parameter to
GaussianProcessEmulator.predict_values()
which would switch on/off the computation of the variance? That would "just" require to passreturn_var=False
to the george GP object.In my use case, returning the variance is 50x slower (60ms vs. 1.2ms) than not returning it. In an emulation MCMC scenario where the PS baryon ratio is just a small component, that is a critical difference.
Getting the full error is only necessary once the chain has converged and then switching on the variance return would suffice.
Happy to have a stab at it.
The text was updated successfully, but these errors were encountered: