gpav.vanilla {HEMDAG} | R Documentation |
GPAV vanilla
Description
Correct the computed scores in a hierarchy according to the GPAV
algorithm.
Usage
gpav.vanilla(
S,
g,
W = NULL,
parallel = FALSE,
ncores = 1,
norm = FALSE,
norm.type = NULL
)
Arguments
S |
a named flat scores matrix with examples on rows and classes on columns (root node included). |
g |
a graph of class |
W |
vector of weight relative to a single example. If |
parallel |
a boolean value. Should the parallel version
|
ncores |
number of cores to use for parallel execution. Set |
norm |
a boolean value. Should the flat score matrix be normalized? By default |
norm.type |
a string character. It can be one of the following values:
|
Value
A named matrix with the scores of the classes corrected according to the GPAV
algorithm.
Examples
data(graph);
data(scores);
S.gpav <- gpav.vanilla(S, g, W=NULL, parallel=FALSE, ncores=1, norm=FALSE, norm.type=NULL);