get_ig_for_feature_table_and_vector {FCBF} | R Documentation

## Get information gain

### Description

This functions runs information gain for a feature table and a class, returning the scores of information gain for all features

### Usage

    get_ig_for_feature_table_and_vector(feature_table, target_vector)

### Arguments

`feature_table` | A table of features (observations in rows, variables in columns)
`target_vector` | A target vector, factor containing classes of the observations. Note: the observations must be in the same order as the parameter x.

### Value

A dataframe containing the SU values for each feature

### Examples

    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_for_feature_table_and_vector(discrete_expression[,],target[])
    ig_values[1:10,]

[Package FCBF version 2.0.0 Index]