View source: R/190_SuperConfig.R
| setup_SuperConfig | R Documentation |
Setup SuperConfig object. SuperConfig is a portable, data-agnostic recipe:
dat_training_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 train.
setup_SuperConfig(
dat_training_path = NULL,
dat_validation_path = NULL,
dat_test_path = NULL,
character2factor = TRUE,
outcome = NULL,
features = NULL,
weights = NULL,
positive_class = NULL,
preprocessor_config = NULL,
decomposition_config = NULL,
hyperparameters = NULL,
tuner_config = NULL,
outer_resampling_config = NULL,
execution_config = setup_FutureExecution(),
question = NULL,
outdir = "results/",
verbosity = 1L
)
dat_training_path |
Character or NULL: Path to training data file. NULL leaves the recipe unbound; set it (or supply data) before train. |
dat_validation_path |
Optional Character: Path to validation data file. |
dat_test_path |
Optional Character: Path to test data file. |
character2factor |
Logical: If TRUE, read character columns as factors. A delimited file carries no type information, so this is what decides whether a column of labels is a categorical predictor or an unusable string one. Applied to all three datasets. |
outcome |
Optional Character: Name of the outcome column; |
features |
Optional Character vector: Names of the predictor columns;
|
weights |
Optional Character: Column name in training data to use as observation weights. If NULL, no weights are used. |
positive_class |
Character or NULL: For binary classification, the outcome level to treat as positive. NULL keeps the existing factor level order. |
preprocessor_config |
Optional |
decomposition_config |
Optional |
hyperparameters |
Optional |
tuner_config |
Optional |
outer_resampling_config |
Optional |
execution_config |
|
question |
Optional Character: Question to answer with the supervised learning analysis. |
outdir |
Optional Character: Output directory for results; |
verbosity |
Integer [0, Inf): Verbosity level. |
SuperConfigPaths object.
EDG
## Not run:
# requires local data file
sc <- setup_SuperConfig(
dat_training_path = "train.csv",
preprocessor_config = setup_SupervisedPreprocessor(scale = TRUE),
hyperparameters = setup_LightRF(),
tuner_config = setup_GridSearch(),
outer_resampling_config = setup_KFold(),
execution_config = setup_FutureExecution(),
question = "Can we tell iris species apart given their measurements?",
outdir = "models/"
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.