gpav.parallel: GPAV over examples - parallel implementation

Description Usage Arguments Value Examples

View source: R/gpav.R

Description

Compute GPAV across all the examples (parallel implementation).

Usage

1
gpav.parallel(S, g, W = NULL, ncores = 8)

Arguments

S

a named flat scores matrix with examples on rows and classes on columns (root node included).

g

a graph of class graphNEL. It represents the hierarchy of the classes.

W

vector of weight relative to a single example. If W=NULL (def.) it is assumed that W is a unitary vector of the same length of the columns' number of the matrix S (root node included).

ncores

number of cores to use for parallel execution (def. 8). If ncores=0, the maximum number of cores minus one are used.

Value

A named matrix with the scores of the classes corrected according to the GPAV algorithm.

Examples

1
2
3
4
5
data(graph);
data(scores);
if(Sys.info()['sysname']!="Windows"){
   S.gpav <- gpav.parallel(S,W=NULL,g,ncores=2);
}

HEMDAG documentation built on Feb. 12, 2021, 5:13 p.m.