Description Usage Arguments Value Examples
This functions runs information gain for a feature table and a class, returning the scores of information gain for all features
1 | get_ig(x, y)
|
x |
A table of features (observations in rows, variables in columns) |
y |
A target vector, factor containing classes of the observations. Note: the observations must be in the same order as the parameter x. |
A dataframe containing the SU values for each feature
1 2 3 4 5 6 7 | data(scDengue)
exprs <- SummarizedExperiment::assay(scDengue, 'logcounts')
discrete_expression <- as.data.frame(discretize_exprs(exprs))
infection <- SummarizedExperiment::colData(scDengue)
target <- infection$infection
ig_values <- get_ig(discrete_expression[,],target[])
ig_values[1:10,]
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.