opf_write_modelfile: Writes into a file the trained OPF classifier

View source: R/LibOPF.R

opf_write_modelfileR 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"))


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