cleaning + Network getter and setter for input / output size
This commit is contained in:
@@ -31,6 +31,14 @@ namespace NeuralNetwork
|
||||
*/
|
||||
virtual ~NeuronInterface() {};
|
||||
|
||||
const std::vector<float> & getWeights() const {
|
||||
return weights;
|
||||
}
|
||||
|
||||
void setWeights(const std::vector<float> &weights_) {
|
||||
weights=weights_;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief getter for neuron weight
|
||||
* @param &neuron is neuron it's weight is returned
|
||||
|
||||
Reference in New Issue
Block a user