ppforest2 v0.1.0
Projection Pursuit Decision Trees and Random Forests
Loading...
Searching...
No Matches
ModelParams.hpp
Go to the documentation of this file.
1
5#pragma once
6
7#include <nlohmann/json.hpp>
8#include <string>
9
10namespace ppforest2::cli {
12 struct ModelParams {
13 int size = 100;
14 float lambda = 0.5;
15 int threads = -1;
16 int seed = -1;
17 float p_vars = -1;
18 int n_vars = -1;
19 int max_retries = 3;
20 std::string vars_input;
21
23 std::string pp_input;
24 std::string dr_input;
25 std::string sr_input;
26
28 nlohmann::json pp_config;
29 nlohmann::json dr_config;
30 nlohmann::json sr_config;
31
32 bool used_default_seed = false;
34 bool used_default_vars = false;
35 };
36}
Command-line interface: argument parsing, subcommands, and benchmark/evaluation orchestration.
Definition Benchmark.hpp:22
Model training parameters shared by train and evaluate.
Definition ModelParams.hpp:12
int seed
Definition ModelParams.hpp:16
float lambda
Definition ModelParams.hpp:14
int size
Definition ModelParams.hpp:13
std::string sr_input
Definition ModelParams.hpp:25
nlohmann::json dr_config
Definition ModelParams.hpp:29
std::string pp_input
Explicit strategy inputs (–pp, –dr, –sr flags).
Definition ModelParams.hpp:23
int threads
Definition ModelParams.hpp:15
std::string dr_input
Definition ModelParams.hpp:24
float p_vars
Definition ModelParams.hpp:17
nlohmann::json sr_config
Definition ModelParams.hpp:30
int n_vars
Definition ModelParams.hpp:18
int max_retries
Definition ModelParams.hpp:19
bool used_default_threads
Definition ModelParams.hpp:33
nlohmann::json pp_config
Strategy JSON objects loaded from config file (pp/dr/sr).
Definition ModelParams.hpp:28
std::string vars_input
Definition ModelParams.hpp:20
bool used_default_vars
Definition ModelParams.hpp:34
bool used_default_seed
Definition ModelParams.hpp:32