gpav.holdout | R Documentation |
Correct the computed scores in a hierarchy according to the GPAV
algorithm by applying a classical holdout procedure.
gpav.holdout( S, g, testIndex, W = NULL, parallel = FALSE, ncores = 1, norm = TRUE, norm.type = NULL )
S |
a named flat score matrix with examples on rows and classes on columns (root node included). |
g |
a graph of class |
testIndex |
a vector of integer numbers corresponding to the indexes of the elements (rows) of the score matrix |
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:
|
A named matrix with the scores of the classes corrected according to the GPAV
algorithm. Rows of the matrix are shrunk to testIndex
.
data(graph); data(scores); data(test.index); S.gpav <- gpav.holdout(S, g, testIndex=test.index, norm=FALSE, norm.type=NULL);
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.