Setup a DecomposeConfig object. DecomposeConfig is a portable,
data-agnostic recipe for a decomposition pipeline: dat_path is optional, so
the same config can be validated, shared, or described without data and have a
path bound later (e.g. by the rtemis CLI) before decomp.
Usage
setup_DecomposeConfig(
dat_path = NULL,
algorithm = NULL,
decomposition_config = NULL,
outdir = "results/",
verbosity = 1L
)Arguments
- dat_path
Character or NULL: Path to input data file. NULL leaves the recipe unbound; set it (or supply data) before decomp.
- algorithm
Character or NULL: Decomposition algorithm. May be left NULL if
decomposition_configis supplied (it carries its own algorithm).- decomposition_config
DecompositionConfigobject or NULL: Configuration for the decomposition itself. Setup with a decompositionsetup_*function, e.g. setup_PCA. If NULL, defaults foralgorithmare used at decomp time.- outdir
Character: Output directory for results.
- verbosity
Integer [0, Inf): Verbosity level.
Examples
dc <- setup_DecomposeConfig(
dat_path = "data.csv",
decomposition_config = setup_PCA(k = 3L),
outdir = "results/"
)