Evolve the neural network cluster.
| 89 | |
| 90 | // Evolve the neural network cluster. |
| 91 | void Lycoris::evolve(std::vector<std::vector<float> > &input, std::vector<std::vector<float> > &desire) { |
| 92 | if (args->evolveFlag) { |
| 93 | args->evolveFlag = false; |
| 94 | } |
| 95 | |
| 96 | if (input.size() != desire.size()) { |
| 97 | std::cout << "The input data and the desire data do not match!" << std::endl; |
| 98 | exit(7); |
| 99 | } |
| 100 | |
| 101 | args->inputArray = input; |
| 102 | args->desireArray = desire; |
| 103 | args->batchSize = input.size(); |
| 104 | |
| 105 | runLycoris(); |
| 106 | } |
| 107 | |
| 108 | // Fit all neural networks in the neural network cluster. |
| 109 | void Lycoris::fit(std::vector<std::vector<float> > &input, std::vector<std::vector<float> > &desire) { |
nothing calls this directly
no outgoing calls
no test coverage detected