Re-index features based on number to rank. Called by
A numeric vector of empirical feature scores.
A matrix or data frame representation of a graph object.
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 (
indexFeats is not meant to be called alone. It is designed as a helper function for
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.