cleaning methods and refactoring abstract classes...

This commit is contained in:
2014-12-11 00:37:58 +01:00
parent ddef0e37a7
commit 2736ede1be
17 changed files with 68 additions and 93 deletions

View File

@@ -13,13 +13,13 @@ class X: public Shin::NeuronNetwork::Problem
int main()
{
srand(time(NULL));
for (int test=0;test<2;test++)
{
Shin::NeuronNetwork::FeedForward q({2,3,1});
Shin::NeuronNetwork::Learning::BackPropagation b(q);
srand(time(NULL));
std::vector<std::pair<Shin::NeuronNetwork::Problem, Shin::NeuronNetwork::Solution> > set;
set.push_back(std::pair<Shin::NeuronNetwork::Problem, Shin::NeuronNetwork::Solution>(Shin::NeuronNetwork::Problem({0,0}),Shin::NeuronNetwork::Solution({0})));
set.push_back(std::pair<Shin::NeuronNetwork::Problem, Shin::NeuronNetwork::Solution>(Shin::NeuronNetwork::Problem({1,0}),Shin::NeuronNetwork::Solution({1})));
@@ -28,7 +28,7 @@ int main()
if(test)
{
std::cerr << "Testing with entropy\n";
b.allowEntropy();
b.allowNoise();
}else
{
std::cerr << "Testing without entropy\n";