ActivationFunctionLinear class
Linear Activation Function (SIMD optimized).
- Inheritance
-
- Object
- ActivationFunction<
double, Float32x4> - ActivationFunctionFloat32x4
- ActivationFunctionLinear
Constructors
- ActivationFunctionLinear({double initialWeightScale = 1})
Properties
- entryFlatSpot → Float32x4
-
finalinherited
- entryFlatSpotPlusOne ↔ Float32x4
-
latefinal
- flatSpot → double
-
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- initialWeightBiasValue → double
-
finalinherited
- initialWeightScale → double
-
finalinherited
- name → String
-
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
scope
→ List<
ActivationFunctionScope> -
Scopes where this activation function should be used.
no setteroverride
Methods
-
activate(
double x) → double -
The activation function.
override
-
activateEntry(
Float32x4 entry) → Float32x4 -
The activation function for an entry (SIMD).
override
-
createRandomWeight(
Random random, {double? scale}) → double -
Generates a random weight compatible with this activation function.
inherited
-
createRandomWeights(
Random random, int length, {double? scale}) → List< double> -
Generates a List of random weights compatible with this activation function.
inherited
-
derivative(
double o) → double -
The derivative function.
override
-
derivativeEntry(
Float32x4 entry) → Float32x4 -
The derivative function for an entry (SIMD).
override
-
derivativeEntryWithFlatSpot(
Float32x4 entry) → Float32x4 -
The derivative function for an entry with
flat spot
(SIMD).override -
derivativeWithFlatSpot(
double o) → double -
The derivative function with
flat spot
.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
{bool withIndent = false}) → String -
Converts to an encoded JSON.
inherited
-
toJsonMap(
) → Map< String, dynamic> -
Converts to a JSON Map.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited