easystats / insight

:crystal_ball: Easy access to model information for various model objects
https://easystats.github.io/insight/
GNU General Public License v3.0
402 stars 39 forks source link

Support for "earth" models #399

Open mdancho84 opened 3 years ago

mdancho84 commented 3 years ago

Getting this error when trying several tidymodels: MARS (shown), Random Forest, etc

Error in if (minfo$is_bayesian) { : argument is of length zero

Reproducible Example

# * MARS Regression ----
library(tidymodels)
library(tidyverse)
library(performance)

model_earth_tidy <- mars(mode = "regression") %>%
    set_engine("earth") %>%
    fit(hwy ~ displ + class, data = mpg)

check_model(model_earth_tidy)
#> Error in if (minfo$is_bayesian) {: argument is of length zero

Created on 2021-07-13 by the reprex package (v2.0.0)

strengejacke commented 3 years ago

In your example, a model of class earth is fit, which is not yet supported. I'm moving this issue to the relevant repository.