opf_write_classification: Writes into a file the predicted labels produced by the opf...

View source: R/LibOPF.R

opf_write_classificationR Documentation

Writes into a file the predicted labels produced by the opf classificator

Description

Writes into a file the predicted labels produced by the opf classificator

Usage

opf_write_classification(classes, file)

Arguments

classes

The classification list (i.e.,predicted labels) produced by the classifier

file

Where you want to save the classification vector

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_classification(Y$classification, file.path(tempdir(), "classification.txt"))


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