MCPcopy Create free account
hub / github.com/RootHarold/Lycoris / evolve

Method evolve

LycorisNet/sources/lycoris.cpp:91–106  ·  view source on GitHub ↗

Evolve the neural network cluster.

Source from the content-addressed store, hash-verified

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) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected