min_grid.tabnet | R Documentation |
min_grid()
determines exactly what models should be fit in order to
evaluate the entire set of tuning parameter combinations. This is for
internal use only and the API may change in the near future.
## S3 method for class 'tabnet'
min_grid(x, grid, ...)
x |
A model specification. |
grid |
A tibble with tuning parameter combinations. |
... |
Not currently used. |
fit_max_value()
can be used in other packages to implement a min_grid()
method.
A tibble with the minimum tuning parameters to fit and an additional list column with the parameter combinations used for prediction.
library(dials)
library(tune)
library(parsnip)
tabnet_spec <- tabnet(decision_width = tune(), attention_width = tune()) %>%
set_mode("regression") %>%
set_engine("torch")
tabnet_grid <-
tabnet_spec %>%
extract_parameter_set_dials() %>%
grid_regular(levels = 3)
min_grid(tabnet_spec, tabnet_grid)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.