ANN<N extends num, E, T extends Signal<N, E, T> , S extends Scale<N> > class
Artificial Neural Network
Constructors
Properties
-
allLayers
↔ List<
Layer< N, E, T, S> > -
latefinal
-
allLayersNeuronsSize
→ List<
int> -
Returns a List with the number of neurons of each layer.
no setter
-
allWeights
↔ List<
N> -
getter/setter pair
- allWeightsHashcode → int
-
no setter
- allWeightsLength → int
-
Total number of weights of all layers.
no setter
- format → String
-
The signal format of this ANN.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
-
latefinal
-
inputLayer
→ LayerInput<
N, E, T, S> -
final
- inputSize → int
-
Size of the input layer (number of input neurons).
no setter
-
output
→ List<
N> -
Returns the current output of the outputLayer neurons as List<N>.
no setter
-
outputAsDouble
→ List<
double> -
Returns the current output of the outputLayer neurons as List<double>.
no setter
-
outputDenormalized
→ List<
N> -
no setter
-
outputLayer
→ LayerOutput<
N, E, T, S> -
final
- outputSize → int
-
Size of the output layer (number of output neurons).
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scale → S
-
final
Methods
-
activate(
T signal) → void -
Activate with
signal
. -
computeSamplesActivations<
P extends Sample< (N, E, T, S> >List< P> samples) → List<List< double> > -
computeSamplesErrors<
P extends Sample< (N, E, T, S> >List< P> samples) → List<double> -
Computes the output errors for each sample in
samples
. -
computeSamplesGlobalError<
P extends Sample< (N, E, T, S> >List< P> samples) → double -
Computes the global error for
samples
. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
resetGradients(
) → void - Reset the gradients with zeroes.
-
resetWeights(
[Random? random]) → void - Reset the weights with random values.
-
toJson(
{bool withIndent = true}) → String - Converts this ANN to an encoded JSON.
-
toJsonMap(
) → Map< String, dynamic> - Converts this ANN to a JSON Map.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited