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

Method getWeights3D

src/NeuralNet.cpp:79–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77}
78
79std::vector< std::vector< std::vector<double> > > NeuralNet::getWeights3D() {
80 std::vector< std::vector< std::vector<double> > > weights;
81 for(unsigned int a = 0; a < net.size(); a++) {
82 std::vector< std::vector<double> > layer;
83 for(unsigned int b = 0; b < net[a].neurons.size(); b++) {
84 layer.push_back(net[a].neurons[b].weights);
85 }
86 weights.push_back(layer);
87 }
88 return weights;
89}
90
91void NeuralNet::setWeights(std::vector<double> w) {
92 unsigned int counter = 0;

Callers 6

trainMethod · 0.80
trainEpocsMethod · 0.80
trainOnDataPointMethod · 0.80
resetNetworkVectorsMethod · 0.80
pruneMethod · 0.80
network.cppFile · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected