-
-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Julia implementation of LOO-PIT #277
Conversation
This reduces load time by 0.5s due to invalidations in Interpolations.
Even though Interpolations.jl is more widely used for interpolating, I replaced it with DataInterpolations.jl for the smoothing. Interpolations introduces a lot of invalidations (see JuliaMath/Interpolations.jl#514), which is likely the reason why adding it as a dependency increased package load time by 0.5s. DataInterpolation works fine for this application and still supports custom interpolation methods. |
The reported coverage misses appear to be miscalculations, since each of those cases is tested. |
This PR adds a Julia implementation of LOO-PIT.
It differs from the Python implementation only in terms of the specific methods defined, preferring positional over keyword arguments. While the Python implementation returns a normal NumPy array, this versions returns a
DimArray
, whose dimensions match the observations, unless the data is a scalar.Edit: for discrete data, different interpolation methods from
Interpolations.jlDataInterpolations.jl can be specified.