modified FF to support old call
This commit is contained in:
1 parent
84a8452e1c
commit
3d2970217f
2 files changed
+7
-2
No files matched your search
@@ -7,7 +7,12 @@ namespace NeuralNetwork
|
|||||||
{
|
{
|
||||||
class FeedForward : public LayerNetwork
|
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
|
#endif
|
||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
#include "../src/NeuralNetwork/FeedForward"
|
#include "../src/NeuralNetwork/FeedForward.h"
|
||||||
#include "../src/NeuralNetwork/Learning/BackPropagation"
|
#include "../src/NeuralNetwork/Learning/BackPropagation"
|
||||||
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|||||||
Reference in new issue
Block a user