opf_accuracy: Computes the OPF accuracy

View source: R/LibOPF.R

opf_accuracyR Documentation

Computes the OPF accuracy

Description

Computes the OPF accuracy

Usage

opf_accuracy(dataSet, classification)

Arguments

dataSet

Data object used in the opf_classify function (subGraph object), normaly is the testing object

classification

The output list produced by opf_classify function

Value

Returns the classification accuracy

Examples

dat <- opf_read_subGraph(system.file("extdata/boat.dat",package = "LibOPF"))
X <- opf_split(dat,0.5,0,0.5,0)
T <- X$training
T2 <- X$testing
Y <- opf_train(T)
class <- opf_classify(T2, Y$classifier)
acc <- opf_accuracy(T2, class)


LibOPF documentation built on Feb. 16, 2023, 10:13 p.m.