R/predict.R
predict.fuzzycoco_fit.RdN.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, ...)the fuzzycoco_fit object containing the fuzzy system to predict on
the input data to use with the fuzzy system to predict the output
whether to be verbose
whether to transform the output data into a binary response. Only applies to classification models.
not used. Only for S3 generic consistency
the predicted output data as a data frame
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)