opf_accuracy4label | R Documentation |
Computes the OPF accuracy for each class of a given set
opf_accuracy4label(dataSet, classification)
dataSet |
Data object used in in the opf_classify function (subGraph object), normaly is the testing object |
classification |
The output list produced by opf_classify function |
Returns the classification accuracy for each class
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_accuracy4label(T2, class)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.