obozinski.holdout {HEMDAG} | R Documentation |
Obozinski's heuristic methods – holdout
Description
Compute the Obozinski's heuristic methods Max
, And
, Or
(Obozinski et al., Genome Biology, 2008)
applying a classical holdout procedure.
Usage
obozinski.holdout(
S,
g,
testIndex,
heuristic = "and",
norm = FALSE,
norm.type = NULL
)
Arguments
S |
a named flat scores matrix with examples on rows and classes on columns. |
g |
a graph of class |
testIndex |
a vector of integer numbers corresponding to the indexes of the elements (rows) of the scores matrix |
heuristic |
a string character. It can be one of the following three values:
|
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 matrix with the scores of the classes corrected according to the chosen heuristic algorithm. Rows of the matrix are shrunk to testIndex
.
Examples
data(graph);
data(scores);
data(test.index);
S.and <- obozinski.holdout(S, g, testIndex=test.index, heuristic="and", norm=FALSE, norm.type=NULL);