MCPcopy Create free account
hub / github.com/CompPhysVienna/n2p2 / resetNeuronStatistics

Method resetNeuronStatistics

src/libnnp/NeuralNetwork.cpp:896–911  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

894}
895
896void NeuralNetwork::resetNeuronStatistics()
897{
898 for (int i = 0; i < numLayers; i++)
899 {
900 for (int j = 0; j < layers[i].numNeurons; j++)
901 {
902 layers[i].neurons[j].count = 0;
903 layers[i].neurons[j].min = numeric_limits<double>::max();
904 layers[i].neurons[j].max = -numeric_limits<double>::max();
905 layers[i].neurons[j].sum = 0.0;
906 layers[i].neurons[j].sum2 = 0.0;
907 }
908 }
909
910 return;
911}
912
913void NeuralNetwork::getNeuronStatistics(long* count,
914 double* min,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected