opf_semi | R Documentation |
Executes the semi supervised training phase
opf_semi( labeledTrainSubGraph, unLabeledTrainSubGraph, evaluatFile = NA, precomputedDistance = NA )
labeledTrainSubGraph |
The labeled training object (subGraph object) |
unLabeledTrainSubGraph |
The unlabeled training object (subGraph object) |
evaluatFile |
The evaluation object produced by the opf_split (subGraph object) |
precomputedDistance |
The precomputed distance matrix produced by the opf_distance (leave it in blank if you are not using this resource) |
Returns the learned model object
Returns a list which contains the classifier object and the classification list object
Training <- opf_read_subGraph(system.file("extdata/Z1LINE.dat",package = "LibOPF")) TUnlabeled <- opf_read_subGraph(system.file("extdata/Z1DOUBLELINE.dat",package = "LibOPF")) Testing <- opf_read_subGraph(system.file("extdata/Z3.dat",package = "LibOPF")) Y <- opf_semi(Training,TUnlabeled) class <- opf_classify(Testing, Y$classifier) acc <- opf_accuracy(Testing, class)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.