C# Класс SharpNeat.Network.DefaultActivationFunctionLibrary

Default implementation of an IActivationFunctionLibrary. Also provides static factory methods to create libraries with commonly used activation functions.
Наследование: IActivationFunctionLibrary
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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