moved Linear sintrigification to .cpp file and fixed err in neuron weights

This commit is contained in:
2016-02-16 23:23:48 +01:00
parent 5bb132d84e
commit 69b530d597
6 changed files with 96 additions and 88 deletions

View File

@@ -71,20 +71,8 @@ namespace FeedForward {
}
using Stringifiable::stringify;
virtual void stringify(std::ostream& out) const override {
out << "{" << std::endl;
out << "\t \"class\": \"NeuralNetwork::FeedForward::Layer\"," << std::endl;
out << "\t \"neurons\": [" << std::endl;
bool first=true;
for(auto &neuron: neurons) {
if(!first)
out << ", ";
out << neuron->stringify();
first=false;
}
out << "]";
out << "}";
}
virtual void stringify(std::ostream& out) const override;
protected:
std::vector<NeuronInterface*> neurons;
};