Validate Config Command#
The validate-config command validates a configuration file without running the pipeline. This is useful for catching configuration errors before starting a potentially long training run.
Usage#
respredai validate-config <path_to_config.ini> [--check-data]
Options#
Required#
config- Path to the configuration file (INI format)Positional argument (no flag needed)
Optional#
--check-data, -d- Also validate that the data file exists and can be loadedChecks that
data_pathpoints to a valid CSV fileVerifies all specified targets and features exist in the data
Reports dataset dimensions and group information
What Gets Validated#
Without --check-data#
File existence - Config file exists and is readable
File format - Config file has
.iniextensionSyntax - Valid INI format with all required sections
Required parameters - All mandatory parameters are present
Parameter values - Values are valid (e.g., valid model names, threshold methods)
With --check-data#
All of the above, plus:
Data file existence - CSV file specified in
data_pathexistsData loading - CSV can be parsed without errors
Column validation - Target columns exist in the data
Missing values - Data doesn’t contain unexpected missing values
Group validation - Group column exists (if specified)
See Also#
Run Command - Execute the full pipeline with nested CV
Train Command - Train models on entire dataset for cross-dataset validation
Create Config Command - Generate template configs