MCPcopy Create free account
hub / github.com/FidoProject/Fido / numberOfHiddenNeurons

Method numberOfHiddenNeurons

src/NeuralNet.cpp:240–249  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

238}
239
240unsigned int NeuralNet::numberOfHiddenNeurons() {
241 unsigned int num = 0;
242 for(unsigned int a = 0; a < net.size()-1; a++) {
243 for(unsigned int b = 0; b < net[a].neurons.size(); b++) {
244 num++;
245 }
246 }
247
248 return num;
249}
250
251void NeuralNet::setOutputActivationFunction(std::string name) {
252 net[net.size() - 1].setActivationFunctionWithName(name);

Callers 3

resetMethod · 0.80
pruneMethod · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected