Skip to content

Instantly share code, notes, and snippets.

@NMZivkovic
Created January 27, 2018 11:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NMZivkovic/83f9f8ca3be8bc9d99c6a8dc88f4c375 to your computer and use it in GitHub Desktop.
Save NMZivkovic/83f9f8ca3be8bc9d99c6a8dc88f4c375 to your computer and use it in GitHub Desktop.
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)));
}
}
@RLKane47
Copy link

Another ANN download

@RLKane47
Copy link

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