C# Class SharpNeat.Network.DefaultActivationFunctionLibrary

Default implementation of an IActivationFunctionLibrary. Also provides static factory methods to create libraries with commonly used activation functions.
Inheritance: IActivationFunctionLibrary
Afficher le fichier Open project: colgreen/sharpneat Class Usage Examples

Méthodes publiques

Méthode Description
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.

Private Methods

Méthode Description
CreateFunctionDictionary ( IList fnList ) : IActivationFunction>.Dictionary

Method Details

CreateLibraryCppn() public static méthode

Create an IActivationFunctionLibrary for use with CPPNs.
public static CreateLibraryCppn ( ) : IActivationFunctionLibrary
Résultat IActivationFunctionLibrary

CreateLibraryNeat() public static méthode

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
Résultat IActivationFunctionLibrary

CreateLibraryRbf() public static méthode

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
Résultat IActivationFunctionLibrary

DefaultActivationFunctionLibrary() public méthode

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

GetFunction() public méthode

Gets the function with the specified integer ID.
public GetFunction ( int id ) : IActivationFunction
id int
Résultat IActivationFunction

GetFunctionList() public méthode

Gets a list of all functions in the library.
public GetFunctionList ( ) : IList
Résultat IList

GetRandomFunction() public méthode

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