-
Notifications
You must be signed in to change notification settings - Fork 635
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
Model request: bam models from mgcv #453
Comments
Go ahead and try that code out for testing. |
It isn't in the package yet. You'll have to source the model code into an R session then use library(caret)
set.seed(24)
tr_dat <- SLC14_1(500)
set.seed(13)
mod <- train(y ~ ., data = tr_dat,
method = modelInfo,
trControl = trainControl(method = "cv")) You should also be able to pass hist(exp(tr_dat$y/100))
set.seed(13)
mod <- train(exp(y/100) ~ ., data = tr_dat,
method = modelInfo,
family = Gamma(),
trControl = trainControl(method = "cv")) |
on CRAN |
Mgcv package has recently proposed an optimized version of gam... It could be nice to add this feature https://stat.ethz.ch/R-manual/R-devel/library/mgcv/html/bam.html
The text was updated successfully, but these errors were encountered: