#include <CscNeuralNetworkGeneticAlgorithm.h>
◆ CscNeuralNetworkGeneticAlgorithm()
◆ ~CscNeuralNetworkGeneticAlgorithm()
| conscience_core::ai::nn::CscNeuralNetworkGeneticAlgorithm::~CscNeuralNetworkGeneticAlgorithm |
( |
| ) |
|
|
virtual |
◆ getGenerationGenerator()
◆ getNbGenerations()
| const unsigned conscience_core::ai::nn::CscNeuralNetworkGeneticAlgorithm::getNbGenerations |
( |
| ) |
const |
◆ getNbNeuralNetworkInputs()
| const unsigned conscience_core::ai::nn::CscNeuralNetworkGeneticAlgorithm::getNbNeuralNetworkInputs |
( |
| ) |
const |
◆ getNbNeuralNetworkOutputs()
| const unsigned conscience_core::ai::nn::CscNeuralNetworkGeneticAlgorithm::getNbNeuralNetworkOutputs |
( |
| ) |
const |
◆ getTrainingDataSet()
◆ getValidationDataSet()
◆ launchGeneticAlgorithm()
Launches the genetic algorithm to generate neural network configurations.
This method initiates and runs a genetic algorithm to create and optimize neural network configurations over multiple generations. The process involves generating an initial population randomly, evaluating their performance, and iteratively producing new generations by selecting and modifying the best performers.
- Returns
- CscNeuralNetworkTensorFlow* Pointer to the best neural network configuration found.
- Exceptions
-
| std::exception | If an error occurs during the execution of the genetic algorithm, a nullptr is returned and an error is logged. |
The genetic algorithm process is as follows:
- Randomly create the first generation.
- Evaluate and sort the population based on their performance.
- Iteratively create new generations and evaluate their performance until the desired number of generations is reached.
- Return the best neural network configuration from the final generation.
The documentation for this class was generated from the following files: