Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

exportCubistFiles

Export Cubist Information To the File System


Description

For a fitted cubist object, text files consistent with the RuleQuest command-line version can be exported.

Usage

exportCubistFiles(x, neighbors = 0, path = getwd(), prefix = NULL)

Arguments

x

a cubist() object

neighbors

how many, if any, neighbors should be used to correct the model predictions

path

the path to put the files

prefix

a prefix (or "filestem") for creating files

Details

Using the RuleQuest specifications, model, names and data files are created for use with the command-line version of the program.

Value

No value is returned. Three files are written out.

Author(s)

Max Kuhn

References

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

See Also

Examples

library(mlbench)
data(BostonHousing)

mod1 <- cubist(x = BostonHousing[, -14], y = BostonHousing$medv)
exportCubistFiles(mod1, neighbors = 8, path = tempdir(), prefix = "BostonHousing")

Cubist

Rule- And Instance-Based Regression Modeling

v0.2.40
GPL-3
Authors
Max Kuhn [aut, cre], Steve Weston [ctb], Chris Keefer [ctb], Nathan Coulter [ctb], Ross Quinlan [aut] (Author of imported C code), Rulequest Research Pty Ltd. [cph] (Copyright holder of imported C code)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.