Loading...
Searching...
No Matches
genetic_algorithm.h
Go to the documentation of this file.
45 void set_elitism_size(const Index size) { elitism_size = clamp<Index>(size, 0, get_individuals_number()); }
Abstract base class for OpenNN datasets, owning samples, variables, and metadata.
Definition dataset.h:61
void set_mutation_rate(const float rate)
Definition genetic_algorithm.h:43
InputsSelectionResults perform_input_selection() override
Runs the genetic algorithm until the stopping criterion is met.
Index get_individuals_number() const
Definition genetic_algorithm.h:24
Index get_maximum_inputs_number() const override
Returns the maximum number of input variables that the algorithm may select.
Definition genetic_algorithm.h:32
void set_minimum_inputs_number(const Index new_minimum)
Definition genetic_algorithm.h:34
Index get_genes_number() const
Definition genetic_algorithm.h:26
void set_initialization_method(string method)
Definition genetic_algorithm.h:41
void to_JSON(JsonWriter &) const override
Writes algorithm configuration to a JSON writer.
void set_individuals_number(const Index new_individuals_number=4)
Sets the size of the population evolved by the algorithm.
void from_JSON(const JsonDocument &) override
Loads algorithm configuration from a JSON document.
void set_maximum_inputs_number(const Index)
Sets the upper bound on the number of selected inputs.
void set_elitism_size(const Index size)
Definition genetic_algorithm.h:45
Index get_minimum_inputs_number() const override
Returns the minimum number of input variables that the algorithm may select.
Definition genetic_algorithm.h:31
void set_default()
Restores default population size, mutation rate, elitism and other parameters.
GeneticAlgorithm(TrainingStrategy *=nullptr)
Constructs the algorithm bound to an optional training strategy.
InputsSelection(TrainingStrategy *=nullptr)
Constructs the algorithm bound to an optional training strategy.
Definition json.h:72
Definition json.h:85
Container of layers forming a feed-forward neural network, with parameter storage and I/O.
Definition neural_network.h:20
High-level orchestrator pairing a Loss with an Optimizer for a network/dataset.
Definition training_strategy.h:24
Definition adaptive_moment_estimation.h:14
Aggregated results of an inputs selection run including optimal inputs and error histories.
Definition inputs_selection.h:112