Open DominiqueMakowski opened 2 years ago
brms also unsuported
m1 <- brms::brm(Sepal.Length ~ s(Petal.Length, k = 3), data = iris, algorithm = "meanfield", refresh = 0)
#> Compiling Stan program...
#> Start sampling
#> Warning: Pareto k diagnostic value is 1.05. Resampling is disabled. Decreasing
#> tol_rel_obj may help if variational algorithm has terminated prematurely.
#> Otherwise consider using sampling instead.
performance::check_model(m1)
#> Error: Model could not be automatically converted to frequentist model.
Created on 2022-03-18 by the reprex package (v2.0.1)
I'll take a look at mgcv::k.check()
and see if it could be implemented and generalized in a check_k
, check_smooth
or check_gam
function
For brms, it is basically implementing that: https://stackoverflow.com/questions/70704912/mgcvk-check-equivalent-for-gam-in-brms
Currently it's not supported, but some specific metrics could be implemented (e.g., for checking the number of knots k):
Created on 2022-03-18 by the reprex package (v2.0.1)