home.social

#mgcvchat — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #mgcvchat, aggregated by home.social.

  1. 📈 Yes you can do that in mgcv update

    big thanks to Zachary Susswein for spotting that my code was out of date in my neighbourhood cross-validation examples: calgary.converged.yt/articles/ calgary.converged.yt/articles/

    They are now up-to-date, as is the helper package mgcvUtils: github.com/dill/mgcvUtils

    #mgcvchat #mgcv

  2. new (out for a while but sitting in my browser from before Christmas) paper in Biometrika from Benjamin Säfken, Thomas Kneib and Simon Wood on smoothing parameter degrees of freedom

    Green OA @ Edinburgh pure.ed.ac.uk/ws/portalfiles/p

    #mgcvchat #mgcv

  3. #mgcv mini-lifehack:

    (assuming you have multithreading enabled) you can get a rough idea of what's happening when fitting a big model by looking at your CPU usage. If only 1 core is being used, the model is still "building" (assembling of design/penalty matrices), once you switch to all cores, then you're actually fitting the model. Sometimes that first model construction phase can take a long time (with a very big model), so it'll probably take a very very long time to fit. So buckle-up.

    #mgcvchat

  4. spending some more time thinking about neighbourhood cross-validation in #mgcv (see original post here: calgary.converged.yt/articles/), but for time series.

    Pretty nice to be able to get back to a yearly trend here without needing to specify an autoregressive structure. We just need to specify a cross-validation scheme and the autocorrelation is "dealt with" during fitting.

    Full post on this soon. #mgcvchat #rstats

  5. Preprint from Simon Wood on the new cross-validation smoothness estimation in #mgcv: arxiv.org/abs/2404.16490. It's a neat performant + data-efficient way to estimate GAMs based on complex CV splits (like spatial/temporal/phylo ones).

    See ?NCV in latest {mgcv} for examples (cran.r-universe.dev/mgcv/doc/m)

    I might write a helper to convert {rsample}/{spatialsample} objects into mgcv's funny CV indexing structure.

    #rstats #ml #tidymodels #mgcvchat @MikeMahoney218 @gavinsimpson @ericJpedersen @millerdl