MARS regression - num_terms

Hi,

Regarding MARS regression in R I built this modelling pipeline:

mars_model <- 
  mars(num_terms = tune(), 
       prod_degree = tune(), 
       prune_method = tune()) %>%
  set_engine("earth") %>%
  set_mode("regression")

mars_workflow <- workflow() %>% 
  add_recipe(preprocessing) %>% 
  add_model(mars_model)

mars_grid <- mars_workflow %>% 
  parameters() %>% 
  grid_regular(levels = 5)

When looking into the mars_grid, the parameter "num_terms" is limited to a maximum value of 5.
Even when I create a grid with a manual range (num_terms = 2L:100L)... and I have a hard time to figure out why it is limited? (I have almost 40 features in my dataset).

Best, Chris

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.