refactored propagation
This commit is contained in:
@@ -108,7 +108,7 @@ namespace NeuralNetwork
|
||||
/**
|
||||
* @brief getter for activation function of neuron
|
||||
*/
|
||||
virtual ActivationFunction::ActivationFunction& getActivationFunction() =0;
|
||||
virtual const ActivationFunction::ActivationFunction& getActivationFunction() const =0;
|
||||
|
||||
virtual void setBasisFunction(const BasisFunction::BasisFunction& basisFunction) =0;
|
||||
|
||||
@@ -167,7 +167,7 @@ namespace NeuralNetwork
|
||||
return *basis;
|
||||
}
|
||||
|
||||
virtual ActivationFunction::ActivationFunction& getActivationFunction() override {
|
||||
virtual const ActivationFunction::ActivationFunction& getActivationFunction() const override {
|
||||
return *activation;
|
||||
}
|
||||
|
||||
@@ -216,7 +216,7 @@ namespace NeuralNetwork
|
||||
throw usageException("basis function");
|
||||
}
|
||||
|
||||
virtual ActivationFunction::ActivationFunction& getActivationFunction() override {
|
||||
virtual const ActivationFunction::ActivationFunction& getActivationFunction() const override {
|
||||
throw usageException("biasNeuron - activation function");
|
||||
}
|
||||
|
||||
@@ -267,7 +267,7 @@ namespace NeuralNetwork
|
||||
throw usageException("basis function");
|
||||
}
|
||||
|
||||
virtual ActivationFunction::ActivationFunction& getActivationFunction() override {
|
||||
virtual const ActivationFunction::ActivationFunction& getActivationFunction() const override {
|
||||
throw usageException("input neuron - activation function");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user