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

Method setWeights3D

src/NeuralNet.cpp:107–113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105}
106
107void NeuralNet::setWeights3D(std::vector< std::vector< std::vector<double> > > w) {
108 for(unsigned int a = 0; a < net.size(); a++) {
109 for(unsigned int b = 0; b < net[a].neurons.size(); b++) {
110 net[a].neurons[b].weights = w[a][b];
111 }
112 }
113}
114
115void NeuralNet::randomizeWeights() {
116 for(unsigned int a = 0; a < net.size(); a++) for(unsigned int b = 0; b < net[a].neurons.size(); b++) net[a].neurons[b].randomizeWeights();

Callers 1

trainOnDataPointMethod · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected