Learn R Programming

rtemis (version 1.4.3)

decomposition_metric_traits: Which Decomposition Metrics Apply to Which Algorithm

Description

Derived from decomposition_traits and the metric registry: a metric applies to an algorithm when every trait it requires is TRUE for that algorithm.

Usage

decomposition_metric_traits(algorithm = NULL)

Value

data.frame. With algorithm, the registry rows that apply to it: one row per metric, with its group, requirements, whether it needs new data, direction and range. With NULL, one row per metric and one logical column per algorithm.

Arguments

algorithm

Optional Character: Name of a decomposition algorithm, matched case-insensitively. NULL returns the full derived matrix.

Author

EDG

Details

Nothing here is maintained per algorithm. reconstruction_rmse requires invertible, so it is defined for PCA, ICA and NMF and undefined for tSNE, UMAP and Isomap; max_abs_component_correlation requires nothing, so it is defined everywhere. An algorithm added to decom_algorithms with a correct traits row inherits the right metric set without any edit to the metrics code.

Examples

Run this code
# Every metric, and which algorithms support it
decomposition_metric_traits()
# What can be computed for a UMAP embedding, which does not invert
decomposition_metric_traits("UMAP")

Run the code above in your browser using DataLab