N.B: just a S3 method method wrapping the predict_fuzzy_system() function

# S3 method for class 'fuzzycoco_fit'
predict(object, x, verbose = FALSE, bin = TRUE, ...)

Arguments

object

the fuzzycoco_fit object containing the fuzzy system to predict on

x

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

verbose

whether to be verbose

bin

whether to transform the output data into a binary response. Only applies to classification models.

...

not used. Only for S3 generic consistency

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(fit, x)