Setup a ClusterConfig object. ClusterConfig is a portable, data-agnostic
recipe for a clustering 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 cluster.
Usage
setup_ClusterConfig(
dat_path = NULL,
algorithm = NULL,
clustering_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 cluster.
- algorithm
Character or NULL: Clustering algorithm. May be left NULL if
clustering_configis supplied (it carries its own algorithm).- clustering_config
ClusteringConfigobject or NULL: Configuration for the clustering itself. Setup with a clusteringsetup_*function, e.g. setup_KMeans. If NULL, defaults foralgorithmare used at cluster time.- outdir
Character: Output directory for results.
- verbosity
Integer [0, Inf): Verbosity level.
Examples
cc <- setup_ClusterConfig(
dat_path = "data.csv",
clustering_config = setup_KMeans(k = 3L),
outdir = "results/"
)