opf_run_example: Runs an usage example

View source: R/LibOPF.R

opf_run_exampleR Documentation

Runs an usage example

Description

This function will run this example:

dat <- opf_read_subGraph(dataset) (dataset is the subgraph file)
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)

Usage

opf_run_example(dataset)

Arguments

dataset

A dataset folder for the test

Value

Returns the accuracy


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