extract the usage of the variables by a fuzzy system

fs_used_vars_to_df(fuzzy_system_desc)

Arguments

fuzzy_system_desc

a fuzzy system description as a named list

Value

a one-row data frame, in columns the input and output variables, with TRUE iff the variable is used.

See also

Other fit_utils: fit_to_df(), fs_rules_to_df()

Examples

model <- fuzzycoco("regression", example_mtcars()$params, seed = 123)
df <- mtcars[c("mpg", "hp", "wt", "qsec")]
fit <- fit(model, qsec ~ ., df, seed = 456, max_generations = 10, progress = FALSE)

print(fs_rules_to_df(fit$fuzzy_system))
#>              mpg hp wt qsec
#> rule 1         0  2  0    1
#> default rule   0  0  0    2