Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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

This comment has been minimized.

Copy link

@RLKane47 RLKane47 commented May 30, 2018

Another ANN download

@RLKane47

This comment has been minimized.

Copy link

@RLKane47 RLKane47 commented May 30, 2018

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