Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign uppassing `maxit` to `glm.control` when fitting `earth` #1018
Comments
|
It's a bug. I'll fix for the next release. |
|
This should do it but please test. If you don't pass |
|
Works well for me. Thank you. |
I am fitting an
earthclassification model but I need more than 25 iterations.earthcalls toglm.glmhas a control variable which is passed toglm.controland that is howmaxitis passed:but when I try to pass
glm = list(family=binomial, control = list(maxit = 50))totrain, it is not passed through and there is no error message.Minimal, reproducible example:
it is hard to simulate data that needs more than 25 iterations (default), so I am trying to set
max_iterto 1 and show that model summary states a higher value. See information printed under GLM (family binomial, link logit)Adding glm to the tuneGrid fails with
Error: The tuning parameter grid should not have columns nprune, degree.How can I set
maxit?Thank you.
also: https://stackoverflow.com/questions/55210511/how-to-pass-glm-control-argument-for-earth-using-caret-maxit
Minimal dataset:
Minimal, runnable code:
Session Info: