powered by
N.B: just a S3 method method wrapping the predict_fuzzy_system() function
predict_fuzzy_system()
# S3 method for fuzzycoco_fit predict(object, x, verbose = FALSE, bin = TRUE, ...)
the predicted output data as a data frame
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
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)
Run the code above in your browser using DataLab