| 238 | } |
| 239 | |
| 240 | unsigned 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 | |
| 251 | void NeuralNet::setOutputActivationFunction(std::string name) { |
| 252 | net[net.size() - 1].setActivationFunctionWithName(name); |
no test coverage detected