opf_split: Generates training, evaluation and test sets for the OPF...

Description Usage Arguments Value Examples

View source: R/LibOPF.R

Description

Generates training, evaluation and test sets for the OPF classifier

Usage

1
opf_split(dataSet, training_p, evaluating_p, testing_p, normalize = 0)

Arguments

dataSet

The data (subGraph object)

training_p

Percentage for the training set size [0,1]

evaluating_p

Percentage for the evaluation set size [0,1] (leave 0 in the case of no learning)

testing_p

Percentage for the test set size [0,1]

normalize

Distance normalization? 1- yes 0 - no

Value

Returns the training, evaluating and the testing objects

Examples

1
2
3
4
5
6
7
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 April 7, 2021, 5:08 p.m.