C# 클래스 SharpNeat.Network.Linear

Linear activation function with clipping. By 'clipping' we mean the output value is linear between x = -1 and x = 1. Below -1 and above +1 the output is clipped at -1 and +1 respectively.
상속: IActivationFunction
파일 보기 프로젝트 열기: colgreen/sharpneat

공개 프로퍼티들

프로퍼티 타입 설명
__DefaultInstance IActivationFunction

공개 메소드들

메소드 설명
Calculate ( double x, double auxArgs ) : double

Calculates the output value for the specified input value and optional activation function auxiliary arguments.

Calculate ( float x, float auxArgs ) : float

Calculates the output value for the specified input value and optional activation function auxiliary arguments. This single precision overload of Calculate() will be used in neural network code that has been specifically written to use floats instead of doubles.

GetRandomAuxArgs ( XorShiftRandom rng, double connectionWeightRange ) : double[]

For activation functions that accept auxiliary arguments; generates random initial values for aux arguments for newly added nodes (from an 'add neuron' mutation).

MutateAuxArgs ( double auxArgs, XorShiftRandom rng, SharpNeat.Utility.ZigguratGaussianSampler gaussianSampler, double connectionWeightRange ) : void

Genetic mutation for auxiliary argument data.

메소드 상세

Calculate() 공개 메소드

Calculates the output value for the specified input value and optional activation function auxiliary arguments.
public Calculate ( double x, double auxArgs ) : double
x double
auxArgs double
리턴 double

Calculate() 공개 메소드

Calculates the output value for the specified input value and optional activation function auxiliary arguments. This single precision overload of Calculate() will be used in neural network code that has been specifically written to use floats instead of doubles.
public Calculate ( float x, float auxArgs ) : float
x float
auxArgs float
리턴 float

GetRandomAuxArgs() 공개 메소드

For activation functions that accept auxiliary arguments; generates random initial values for aux arguments for newly added nodes (from an 'add neuron' mutation).
public GetRandomAuxArgs ( XorShiftRandom rng, double connectionWeightRange ) : double[]
rng XorShiftRandom
connectionWeightRange double
리턴 double[]

MutateAuxArgs() 공개 메소드

Genetic mutation for auxiliary argument data.
public MutateAuxArgs ( double auxArgs, XorShiftRandom rng, SharpNeat.Utility.ZigguratGaussianSampler gaussianSampler, double connectionWeightRange ) : void
auxArgs double
rng XorShiftRandom
gaussianSampler SharpNeat.Utility.ZigguratGaussianSampler
connectionWeightRange double
리턴 void

프로퍼티 상세

__DefaultInstance 공개적으로 정적으로 프로퍼티

Default instance provided as a public static field.
public static IActivationFunction __DefaultInstance
리턴 IActivationFunction