C# 클래스 SharpNeat.Network.DefaultActivationFunctionLibrary

Default implementation of an IActivationFunctionLibrary. Also provides static factory methods to create libraries with commonly used activation functions.
상속: IActivationFunctionLibrary
파일 보기 프로젝트 열기: colgreen/sharpneat 1 사용 예제들

공개 메소드들

메소드 설명
CreateLibraryCppn ( ) : IActivationFunctionLibrary

Create an IActivationFunctionLibrary for use with CPPNs.

CreateLibraryNeat ( IActivationFunction activationFn ) : IActivationFunctionLibrary

Create an IActivationFunctionLibrary for use with NEAT. NEAT uses the same activation function for all neurons/nodes therefore this factory method creates an IActivationFunction containing only the single provided IActivationFunction.

CreateLibraryRbf ( IActivationFunction activationFn, double auxArgsMutationSigmaCenter, double auxArgsMutationSigmaRadius ) : IActivationFunctionLibrary

Create an IActivationFunctionLibrary for use with Radial Basis Function NEAT.

DefaultActivationFunctionLibrary ( IList fnList ) : System.Collections.Generic

Constructs an activation function library with the provided list of activation functions.

GetFunction ( int id ) : IActivationFunction

Gets the function with the specified integer ID.

GetFunctionList ( ) : IList

Gets a list of all functions in the library.

GetRandomFunction ( XorShiftRandom rng ) : ActivationFunctionInfo

Randomly select a function based on each function's selection probability.

비공개 메소드들

메소드 설명
CreateFunctionDictionary ( IList fnList ) : IActivationFunction>.Dictionary

메소드 상세

CreateLibraryCppn() 공개 정적인 메소드

Create an IActivationFunctionLibrary for use with CPPNs.
public static CreateLibraryCppn ( ) : IActivationFunctionLibrary
리턴 IActivationFunctionLibrary

CreateLibraryNeat() 공개 정적인 메소드

Create an IActivationFunctionLibrary for use with NEAT. NEAT uses the same activation function for all neurons/nodes therefore this factory method creates an IActivationFunction containing only the single provided IActivationFunction.
public static CreateLibraryNeat ( IActivationFunction activationFn ) : IActivationFunctionLibrary
activationFn IActivationFunction
리턴 IActivationFunctionLibrary

CreateLibraryRbf() 공개 정적인 메소드

Create an IActivationFunctionLibrary for use with Radial Basis Function NEAT.
public static CreateLibraryRbf ( IActivationFunction activationFn, double auxArgsMutationSigmaCenter, double auxArgsMutationSigmaRadius ) : IActivationFunctionLibrary
activationFn IActivationFunction
auxArgsMutationSigmaCenter double
auxArgsMutationSigmaRadius double
리턴 IActivationFunctionLibrary

DefaultActivationFunctionLibrary() 공개 메소드

Constructs an activation function library with the provided list of activation functions.
public DefaultActivationFunctionLibrary ( IList fnList ) : System.Collections.Generic
fnList IList
리턴 System.Collections.Generic

GetFunction() 공개 메소드

Gets the function with the specified integer ID.
public GetFunction ( int id ) : IActivationFunction
id int
리턴 IActivationFunction

GetFunctionList() 공개 메소드

Gets a list of all functions in the library.
public GetFunctionList ( ) : IList
리턴 IList

GetRandomFunction() 공개 메소드

Randomly select a function based on each function's selection probability.
public GetRandomFunction ( XorShiftRandom rng ) : ActivationFunctionInfo
rng Redzen.Numerics.XorShiftRandom
리턴 ActivationFunctionInfo