ppforest2 v0.1.0
Projection Pursuit Decision Trees and Random Forests
Loading...
Searching...
No Matches
Validation.hpp
Go to the documentation of this file.
1
10#pragma once
11
12#include <nlohmann/json.hpp>
13#include <string>
14#include <vector>
15
16namespace ppforest2::cli {
27 inline void check(bool condition, std::string const& message, std::vector<std::string>& errors) {
28 if (!condition) {
29 errors.push_back(message);
30 }
31 }
32
39 nlohmann::json training_defaults();
40
50 void validate_training_config(nlohmann::json const& config, std::vector<std::string>& errors);
51
52 struct Params;
53
60 void validate_params(Params const& params);
61}
Command-line interface: argument parsing, subcommands, and benchmark/evaluation orchestration.
Definition Benchmark.hpp:25
void validate_training_config(nlohmann::json const &config, std::vector< std::string > &errors)
Validate a training config JSON.
nlohmann::json training_defaults()
Default values for shared training parameters.
void check(bool condition, std::string const &message, std::vector< std::string > &errors)
Collects validation errors grouped by label.
Definition Validation.hpp:27
void validate_params(Params const &params)
Validate training-related params and throw on errors.
All CLI options and runtime parameters.
Definition CLIOptions.hpp:33