added randomizeWeights function
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user