59 void initialize_population();
60 void initialize_population_random();
61 void initialize_population_correlations();
62 void evaluate_population();
63 void assign_fitness();
64 void perform_selection();
66 void perform_crossover();
67 void perform_mutation();
68 vector<Index> get_selected_indices()
const;
71 Tensor<VectorR, 1> individual_parameters;
73 vector<Index> original_input_variable_indices;
74 vector<Index> original_target_variable_indices;
86 Index minimum_inputs_number = 1;
87 Index maximum_inputs_number;
93 string initialization_method;
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.
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
Matrix< float, Dynamic, 1 > VectorR
Definition pch.h:181
Matrix< bool, Dynamic, 1 > VectorB
Definition pch.h:183
Matrix< bool, Dynamic, Dynamic, Layout > MatrixB
Definition pch.h:179