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,
decomposition_config = NULL,
execution_config = setup_FutureExecution(),
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.
- decomposition_config
DecompositionConfigobject or NULL: Configuration for the decomposition itself. Setup with a decompositionsetup_*function, e.g. setup_PCA. If NULL, decomp runs its default algorithm with default settings.- execution_config
ExecutionConfigobject: Execution settings, e.g. setup_FutureExecution. Its workers are threads for an algorithm that uses them, and its seed seeds the fit.- 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/"
)