Learn R Programming

HEMDAG (version 2.6.1)

GPAV.over.examples: GPAV Over Examples

Description

Function to compute GPAV across all the examples.

Usage

GPAV.over.examples(S, g, W = NULL)

Arguments

S

a named flat scores matrix with examples on rows and classes on columns (root node included).

g

a graph of class graphNEL. It represents the hierarchy of the classes.

W

vector of weight relative to a single example. If the vector W is not specified (def. W=NULL), it is assumed that W is a unitary vector of the same length of the columns' number of the matrix S (root node included).

Value

a named matrix with the scores of the classes corrected according to the GPAV algorithm.

See Also

GPAV.parallel

Examples

Run this code
# NOT RUN {
data(graph);
data(scores);
S.GPAV <- GPAV.over.examples(S,W=NULL,g);
# }

Run the code above in your browser using DataLab