powered by
For a fitted cubist object, text files consistent with the RuleQuest command-line version can be exported.
exportCubistFiles(x, neighbors = 0, path = getwd(), prefix = NULL)
No value is returned. Three files are written out.
a cubist() object
cubist()
how many, if any, neighbors should be used to correct the model predictions
the path to put the files
a prefix (or "filestem") for creating files
Max Kuhn
Using the RuleQuest specifications, model, names and data files are created for use with the command-line version of the program.
model
names
data
Quinlan. Learning with continuous classes. Proceedings of the 5th Australian Joint Conference On Artificial Intelligence (1992) pp. 343-348
Quinlan. Combining instance-based and model-based learning. Proceedings of the Tenth International Conference on Machine Learning (1993) pp. 236-243
Quinlan. C4.5: Programs For Machine Learning (1993) Morgan Kaufmann Publishers Inc. San Francisco, CA
http://rulequest.com/cubist-info.html
cubist(), predict.cubist(), summary.cubist(), predict.cubist()
predict.cubist()
summary.cubist()
library(mlbench) data(BostonHousing) mod1 <- cubist(x = BostonHousing[, -14], y = BostonHousing$medv) exportCubistFiles(mod1, neighbors = 8, path = tempdir(), prefix = "BostonHousing")
Run the code above in your browser using DataLab