opf_write_modelfile {LibOPF} | R Documentation |
Writes into a file the trained OPF classifier
opf_write_modelfile(g, file)
g |
The classifier object |
file |
The file name to save the classifier |
'NULL'
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"))