Threshold activation function.
Threshold
00 Remarks
The class represents threshold activation function with the next expression:
f(x) = 1, if x >= 0, otherwise 0
Output range of the function: [0, 1].
Functions graph:
01 Syntax
Microsoft.VisualBasic.MachineLearning.ComponentModel.Activations.Threshold
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| .ctor | 1 | Initializes a new instance of the Threshold class. |
| Function | 1 | Calculates function value. |
| Derivative | 1 | Calculates function derivative (not supported). |
03 Members
#ctor
Initializes a new instance of the Threshold class.
Function(
Double)Calculates function value.
Remarks
The method calculates function value at point x.
Parameters
| Name | Type | Description |
|---|---|---|
x | Double | Function input value. |
Returns
Function output value, f(x).
Derivative(
Double)Calculates function derivative (not supported).
Remarks
The method is not supported, because it is not possible to calculate derivative of the function.
Parameters
| Name | Type | Description |
|---|---|---|
x | Double | Input value. |
Returns
Always returns 0.