perceptron implementation changed + perceptronLearningAlgorithm and tests
This commit is contained in:
@@ -13,7 +13,15 @@ namespace FeedForward {
|
||||
|
||||
using Network::computeOutput;
|
||||
using Network::randomizeWeights;
|
||||
using Network::operator[];
|
||||
|
||||
inline std::size_t size() const {
|
||||
return layers[1]->size();
|
||||
}
|
||||
|
||||
inline NeuronInterface& operator[](const std::size_t& neuron) {
|
||||
return layers[1]->operator[](neuron);
|
||||
}
|
||||
|
||||
protected:
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user