Description Usage Arguments Details Value Note Author(s) References See Also
Re-index features based on number to rank. Called by familyRank
.
1 | indexFeats(scores, graph, n.rank = NULL)
|
scores |
A numeric vector of empirical feature scores. |
graph |
A matrix or data frame representation of a graph object. |
n.rank |
Number of features to rank. |
This function is used to re-index features for the Family Rank algorithm. The function takes in the scores for all features, and returns scores for the top n.rank
features. It also takes in the full domain knowledge graph
and returns the subgraph that only includes interactions between the top n.rank
features. Finally, it re-indexes the top features in both the score vector and domain knowledge graph to 1:n.rank.
Returns a named list with re-indexed domain knowledge graph (graph.w
), re-indexed scores (score.w
), a mapping between original and new indices (loc.map
), and the number of features to rank (n.rnak
).
indexFeats
is not meant to be called alone. It is designed as a helper function for familyRank
.
Michelle Saul
ADD REFERENCE
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.