激活函数的存储于XML文档之中的数据模型
ActiveFunction
01 Syntax
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| CreateFunction | 1 | Create the activation function object instance from the stored data model. |
| HasKey | 1 | Does a specific constructor argument exists in the ActiveFunction.Arguments list? |
| ToString | 1 | Display this activation function data model as a text expression. |
| op_Explicit | 1 | 将激活函数从数据模型转换为对象模型 |
| Parse | 1 | 将文本表达式解析为激活函数的模型 |
03 Properties
| Name | Overloads | Summary |
|---|---|---|
| name | 1 | The function name |
| Arguments | 1 | 函数对象的构造参数列表 |
| Item | 1 | Gets the value of a specific constructor argument by its name. |
| Function | 1 | 通过这个只读属性来得到激活函数的对象模型 |
| ReLU | 1 | The default text expression of the ReLU function: ReLU(). |
| Threshold | 1 | The default text expression of the Threshold function: Threshold(). |
| Sigmoid | 1 | The default text expression of the Sigmoid function: Sigmoid(alpha:=2.0). |
| BipolarSigmoid | 1 | The default text expression of the BipolarSigmoid function: BipolarSigmoid(alpha:=2.0). |
04 Members
Create the activation function object instance from the stored data model.
A default Sigmoid function will be returned when the ActiveFunction.name value is not a valid function name.
An IActivationFunction object instance which is described by the ActiveFunction.name and ActiveFunction.Arguments.
String)Does a specific constructor argument exists in the ActiveFunction.Arguments list?
| Name | Type | Description |
|---|---|---|
name | String | The argument name, the name is case insensitive. |
True when the target argument is exists in the ActiveFunction.Arguments list, otherwise False.
Display this activation function data model as a text expression.
A string in format like name(arg1:=value1, arg2:=value2), which can be parsed back by the ActiveFunction.Parse() function.
将激活函数从数据模型转换为对象模型
| Name | Type | Description |
|---|---|---|
af | ActiveFunction | The source activation function data model. |
The activation function object which is created by the ActiveFunction.CreateFunction() method.
String)将文本表达式解析为激活函数的模型
| Name | Type | Description |
|---|---|---|
expression | String | 这个字符串表达式应该是IActivationFunction.ToString()的函数输出结果字符串 |
An ActiveFunction data model which is parsed from the given text expression.
The function name
The unique name of the activation function, this name should be identical with the class name of the target activation function type.
函数对象的构造参数列表
因为无法将字典对象进行Xml序列化, 所以在这里使用键值对集合来表示
A collection of the NamedValue objects which describes the constructor arguments of this activation function.
String)Gets the value of a specific constructor argument by its name.
| Name | Type | Description |
|---|---|---|
name | String | The argument name, the name is case insensitive. |
The argument value in Double type; 0 will be returned when the target argument is not exists.
通过这个只读属性来得到激活函数的对象模型
The IActivationFunction object instance which is created by the ActiveFunction.CreateFunction() method.
The default text expression of the ReLU function: ReLU().
A default string expression value.
The default text expression of the Threshold function: Threshold().
A default string expression value.
The default text expression of the Sigmoid function: Sigmoid(alpha:=2.0).
A default string expression value.
The default text expression of the BipolarSigmoid function: BipolarSigmoid(alpha:=2.0).
A default string expression value.