tpr.dag.cv | R Documentation |
Correct the computed scores in a hierarchy according to the a TPR-DAG
ensemble variant.
tpr.dag.cv(
S,
g,
ann,
norm = FALSE,
norm.type = NULL,
positive = "children",
bottomup = "threshold",
topdown = "gpav",
W = NULL,
parallel = FALSE,
ncores = 1,
threshold = seq(from = 0.1, to = 0.9, by = 0.1),
weight = 0,
kk = 5,
seed = 23,
metric = "auprc",
n.round = NULL
)
S |
a named flat score matrix with examples on rows and classes on columns. |
g |
a graph of class |
ann |
an annotation matrix: rows correspond to examples and columns to classes. |
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:
|
positive |
choice of the positive nodes to be considered in the bottom-up strategy. Can be one of the following values:
|
bottomup |
strategy to enhance the flat predictions by propagating the positive predictions from leaves to root. It can be one of the following values:
|
topdown |
strategy to make the scores hierarchy-consistent. It can be one of the following values:
|
W |
vector of weight relative to a single example. If |
parallel |
a boolean value:
Use |
ncores |
number of cores to use for parallel execution. Set |
threshold |
range of threshold values to be tested in order to find the best threshold ( |
weight |
range of weight values to be tested in order to find the best weight ( |
kk |
number of folds of the cross validation ( |
seed |
initialization seed for the random generator to create folds ( |
metric |
a string character specifying the performance metric on which maximizing the parametric ensemble variant. It can be one of the following values:
|
n.round |
number of rounding digits (def. |
The parametric hierarchical ensemble variants are cross-validated maximizing the parameter on the metric selected in metric
.
A named matrix with the scores of the functional terms corrected according to the chosen TPR-DAG
ensemble algorithm.
data(graph);
data(scores);
data(labels);
S.tpr <- tpr.dag.cv(S, g, ann=NULL, norm=FALSE, norm.type=NULL, positive="children",
bottomup="threshold.free", topdown="gpav", W=NULL, parallel=FALSE, ncores=1,
threshold=0, weight=0, kk=NULL, seed=NULL, metric=NULL, n.round=NULL);
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.