svd_entropy: Feature importance based on data entropy.

Description Usage Arguments Value Examples

View source: R/svd_entropy.R

Description

svd_entropy measures the contribution of each feature in decreasing the data entropy.

Usage

1
svd_entropy(variables, sample, cores = NULL)

Arguments

variables

character vector specifying observation variables.

sample

tbl containing sample used to estimate parameters.

cores

optional integer specifying number of CPU cores used for parallel computing using doParallel.

Value

data frame specifying the contribution of each feature in decreasing the data entropy. Higher values indicate more information.

Examples

1
2
3
4
5
6
7
sample <- tibble::tibble(
  AreaShape_MinorAxisLength = c(10, 12, 15, 16, 8, 8, 7, 7, 13, 18),
  AreaShape_MajorAxisLength = c(35, 18, 22, 16, 9, 20, 11, 15, 18, 42),
  AreaShape_Area = c(245, 151, 231, 179, 50, 112, 53, 73, 164, 529)
)
variables <- c("AreaShape_MinorAxisLength", "AreaShape_MajorAxisLength", "AreaShape_Area")
svd_entropy(variables, sample, cores = 1)

cytominer documentation built on July 8, 2020, 5:08 p.m.