
Check if a Kerasnip Model Specification Exists
model_exists.Rd
This is an internal helper function to check if a model specification has been
registered in the parsnip
model environment.
Examples
# \donttest{
if (requireNamespace("parsnip", quietly = TRUE)) {
library(parsnip)
# Check for a model that exists in parsnip
model_exists("mlp")
# Check for a model that does not exist
model_exists("non_existent_model")
}
#> [1] FALSE
# }