122 void save(
const filesystem::path& file_name)
const;
128 void load(
const filesystem::path& file_name);
136 NeuronSelection* get_neurons_selection()
const {
return neurons_selection.get(); }
142 InputsSelection* get_inputs_selection()
const {
return inputs_selection.get(); }
152 void set_neurons_selection(
const string& new_neurons_selection);
163 void set_inputs_selection(
const string& new_inputs_selection);
166 TrainingStrategy* training_strategy =
nullptr;
169 unique_ptr<NeuronSelection> neurons_selection;
172 unique_ptr<InputsSelection> inputs_selection;
void set(TrainingStrategy *new_training_strategy)
Replaces the underlying training strategy.
Definition model_selection.h:73
NeuronsSelectionResults perform_neurons_selection()
Runs the configured neuron-selection algorithm.
bool has_training_strategy() const
Reports whether a training strategy is configured.
Definition model_selection.h:67
ModelSelection(TrainingStrategy *new_training_strategy=nullptr)
Constructs a model selection bound to a training strategy.
void save(const filesystem::path &file_name) const
Saves the model-selection state to a JSON file on disk.
void check() const
Validates that all components needed for selection are set.
void set_default()
Picks default selection algorithms.
void load(const filesystem::path &file_name)
Loads the model-selection state from a JSON file on disk.
const TrainingStrategy * get_training_strategy() const
Returns the underlying training strategy.
Definition model_selection.h:61
InputsSelectionResults perform_input_selection()
Runs the configured input-selection algorithm.
void from_JSON(const JsonDocument &document)
Restores the model-selection state from a JSON document.
void to_JSON(JsonWriter &writer) const
Serializes the model-selection state to JSON.
Abstract base class for hidden-layer-size selection methods.
Definition neuron_selection.h:37
Coordinates the training of a NeuralNetwork on a Dataset.
Definition training_strategy.h:45
Definition adaptive_moment_estimation.h:19
Declares the NeuronSelection abstract base and the NeuronsSelectionResults summary structure.
Outcome of a NeuronSelection run.
Definition neuron_selection.h:219