opf_pruning {LibOPF} | R Documentation |
Executes the pruning algorithm
Description
Executes the pruning algorithm
Usage
opf_pruning(
dataTraining,
dataEvaluating,
percentageAccuracy,
precomputedDistance = NA
)
Arguments
dataTraining |
The training object produced by the opf_split (subGraph object) |
dataEvaluating |
The evaluating object produced by the opf_split (subGraph object) |
percentageAccuracy |
Max percentage of lost accuracy [0,1] |
precomputedDistance |
The precomputed distance matrix produced by the opf_distance (leave it in blank if you are not using this resource) |
Value
Returns a list which contains the classifier model object
Examples
dat <- opf_read_subGraph(system.file("extdata/boat.dat",package = "LibOPF"))
X <- opf_split(dat,0.3,0.2,0.5,0)
T <- X$training
T2 <- X$testing
E <- X$evaluating
Y <- opf_pruning(T,E,0.8)
class <- opf_classify(T2, Y$classifier)
acc <- opf_accuracy(T2, class)
[Package LibOPF version 2.6.2 Index]