M5_R | R Documentation |
M5_R Regression Algorithm from KEEL.
M5_R(train, test, type, pruningFactor, unsmoothed)
train |
Train dataset as a data.frame object |
test |
Test dataset as a data.frame object |
type |
type. Default value = "m" |
pruningFactor |
pruningFactor. Default value = 2 |
unsmoothed |
unsmoothed. Default value = TRUE |
A data.frame with the actual and predicted values for both train
and test
datasets.
data_train <- RKEEL::loadKeelDataset("autoMPG6_train")
data_test <- RKEEL::loadKeelDataset("autoMPG6_test")
#Create algorithm
algorithm <- RKEEL::M5_R(data_train, data_test)
#Run algorithm
algorithm$run()
#See results
algorithm$testPredictions
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.