gpav.parallel | R Documentation |
Compute GPAV
across all the examples (parallel implementation).
gpav.parallel(S, g, W = NULL, ncores = 8)
S |
a named flat score 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 |
ncores |
number of cores to use for parallel execution ( |
A named matrix with the scores of the classes corrected according to the GPAV
algorithm.
data(graph);
data(scores);
if(Sys.info()['sysname']!="Windows"){
S.gpav <- gpav.parallel(S,W=NULL,g,ncores=2);
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.