opf_write_modelfile {LibOPF}R Documentation

Writes into a file the trained OPF classifier

Description

Writes into a file the trained OPF classifier

Usage

opf_write_modelfile(g, file)

Arguments

g

The classifier object

file

The file name to save the classifier

Value

'NULL'

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)
opf_write_modelfile(Y$classifier, file.path(tempdir(), "classifier.opf"))


[Package LibOPF version 2.6.2 Index]