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

Method randomizeWeights

src/Neuron.cpp:17–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15}
16
17void Neuron::randomizeWeights() {
18 for (unsigned int a = 0; a < weights.size(); a++) weights[a] = Neuron::randomWeight();
19}
20
21double Neuron::getOutput(std::vector<double> inputs) {
22 if(inputs.size() != weights.size() - 1) {

Callers 4

resetMethod · 0.45
resetMethod · 0.45
network.cppFile · 0.45

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected