0

I am going through a blog post on tidymodels (random forest regression) and for some reason, I keep getting Error: object should be a 'quant_param' object when I run the code chunk below

grid_tidym <- grid_random(
  mtry %>% range_set(c( 1,  14)),
  trees %>% range_set(c( 500, 1000)), 
  min_n %>% range_set(c(2,  10)),
  size = 30
)

How do I get out of this? Thanks.

Punxsutawney
  • 81
  • 1
  • 4

1 Answers1

0

Solved here; parameter objects are generated by functions (e.g. mtry()).

topepo
  • 13,534
  • 3
  • 39
  • 52