added randomizeWeights function

This commit is contained in:
2016-02-07 21:40:28 +01:00
parent e118e09396
commit 59125e57f9
2 changed files with 17 additions and 2 deletions

View File

@@ -24,8 +24,6 @@ namespace FeedForward {
/**
* @brief Constructor for Network
* @param _inputSize is number of inputs to network
* @param _outputSize is size of output from network
* @param hiddenUnits is number of hiddenUnits to be created
*/
inline Network(size_t _inputSize):NeuralNetwork::Network(),layers() {
appendLayer(_inputSize);
@@ -53,6 +51,9 @@ namespace FeedForward {
return *layers[id];
}
void randomizeWeights();
std::size_t size() const { return layers.size(); };
/**
* @brief This is a function to compute one iterations of network
* @param input is input of network