Created
January 27, 2018 11:50
-
-
Save NMZivkovic/83f9f8ca3be8bc9d99c6a8dc88f4c375 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class SigmoidActivationFunction : IActivationFunction | |
{ | |
private double _coeficient; | |
public SigmoidActivationFunction(double coeficient) | |
{ | |
_coeficient = coeficient; | |
} | |
public double CalculateOutput(double input) | |
{ | |
return (1 / (1 + Math.Exp(-input * _coeficient))); | |
} | |
} |
public class SigmoidActivationFunction : IActivationFunction
{
private double _coeficient;
public SigmoidActivationFunction(double coeficient)
{
_coeficient = coeficient;
}
public double CalculateOutput(double input)
{
return (1 / (1 + Math.Exp(-input * _coeficient)));
}
}
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Another ANN download