C45-C: C45_C KEEL Classification Algorithm

Description Usage Arguments Value Examples

Description

C45_C Classification Algorithm from KEEL.

Usage

1
C45_C(train, test, pruned, confidence, instancesPerLeaf)

Arguments

train

Train dataset as a data.frame object

test

Test dataset as a data.frame object

pruned

pruned. Default value = TRUE

confidence

confidence. Default value = 0.25

instancesPerLeaf

instancesPerLeaf. Default value = 2

Value

A data.frame with the actual and predicted classes for both train and test datasets.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
data_train <- RKEEL::loadKeelDataset("iris_train")
data_test <- RKEEL::loadKeelDataset("iris_test")

#Create algorithm
algorithm <- RKEEL::C45_C(data_train, data_test)

#Run algorithm
algorithm$run()

#See results
algorithm$testPredictions

Example output

/usr/local/lib/R/site-library/RKEELdata/datasets//usr/local/lib/R/site-library/RKEELdata/datasets/OpenJDK 64-Bit Server VM warning: Can't detect initial thread stack location - find_vma failed
/work/tmp/tmp/RtmpVUhFtS/experiment_2017-11-12_14-50-221415/results/C45-C.data/result0.tra
/work/tmp/tmp/RtmpVUhFtS/experiment_2017-11-12_14-50-221415/results/C45-C.data/result0.tst
Error! Error in private$readOutputs(paste0(private$mainPath, "/results/", private$algorithmName, : Results were not stored. Execution error.
Warning message:
In system(paste0(private$javaPath, "java -jar RunKeel.jar"), ignore.stdout = TRUE) :
  system call failed: Cannot allocate memory
NULL
Warning message:
system call failed: Cannot allocate memory 

RKEEL documentation built on March 19, 2020, 5:09 p.m.

Related to C45-C in RKEEL...