moved Linear sintrigification to .cpp file and fixed err in neuron weights
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user