predict the outcome of a fuzzy system on some input data

predict_fuzzy_system(fs, x, verbose = FALSE)

Arguments

fs

the fuzzy system to predict on (as a named list)

x

the input data to use with the fuzzy system to predict the output

verbose

whether to be verbose

Value

the predicted output data as a data frame

Examples

model <- fuzzycoco("regression", example_mtcars()$params, seed = 123)
x <- mtcars[c("mpg", "hp", "wt")]
y <- mtcars["qsec"]
fit <- fit_xy(model, x, y, progress = FALSE)

y2 <- predict_fuzzy_system(fit$fuzzy_system,x)