You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am fitting an earth classification model but I need more than 25 iterations. earth calls to glm. glm has a control variable which is passed to glm.control and that is how maxit is passed:
mars_fit <- earth(formula = response ~ x1 + x2, data = dat,
glm = list(family=binomial, control = list(maxit = 50)))
but when I try to pass glm = list(family=binomial, control = list(maxit = 50)) to train, 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_iter to 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.
I am fitting an
earth
classification model but I need more than 25 iterations.earth
calls toglm
.glm
has a control variable which is passed toglm.control
and that is howmaxit
is 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_iter
to 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:
The text was updated successfully, but these errors were encountered: