How to use weights with gen_additive_mod()

How to use weights with gen_additive_mod()?

Did not work...

myRows  <-nrow(df_train)
                        wts     <-c(seq(1,myRows,1))
                        model_spec  <- gen_additive_mod() %>% 
                            set_engine("mgcv",method = "REML",weights=wts) %>% 

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.