added perfomance tests
This commit is contained in:
19
tests/feedforward_perf.cpp
Normal file
19
tests/feedforward_perf.cpp
Normal file
@@ -0,0 +1,19 @@
|
||||
#include <NeuralNetwork/FeedForward/Network.h>
|
||||
|
||||
#include <cassert>
|
||||
#include <iostream>
|
||||
|
||||
int main() {
|
||||
{ // XOR problem
|
||||
NeuralNetwork::FeedForward::Network n(2);
|
||||
NeuralNetwork::ActivationFunction::Sigmoid a(-1);
|
||||
n.appendLayer(2000,a);
|
||||
n.appendLayer(2000,a);
|
||||
n.appendLayer(1,a);
|
||||
|
||||
for(int i=0;i<500;i++) {
|
||||
n.computeOutput({1,1});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user