modified FF to support old call

This commit is contained in:
2015-08-30 23:10:42 +02:00
parent 84a8452e1c
commit 3d2970217f
2 changed files with 7 additions and 2 deletions

View File

@@ -7,7 +7,12 @@ namespace NeuralNetwork
{
class FeedForward : public LayerNetwork
{
public:
FeedForward(std::initializer_list<size_t> s, double lam=NeuralNetwork::lambda,
LayerNetworkInitializer weightInit=
[](const size_t&, const size_t &, const size_t &)->float{ return 1.0-((float)(rand()%2001))/1000.0;}
) : LayerNetwork(s,lam,weightInit) {}
};
}
#endif

View File

@@ -1,4 +1,4 @@
#include "../src/NeuralNetwork/FeedForward"
#include "../src/NeuralNetwork/FeedForward.h"
#include "../src/NeuralNetwork/Learning/BackPropagation"
#include <iostream>