Edge class

The Edge class represents a connection between two neurons in a neural network, encapsulating the weight of the connection and references to the input and output neurons.

This class is essential for managing the connections and weights between neurons in neural networks, facilitating the flow of data and the learning process.

Properties:

  • double? weight: The weight of the connection between the input and output neurons.
  • Neuron inputNeuron: The neuron from which the connection originates.
  • Neuron outputNeuron: The neuron to which the connection leads.

Example usage:

final inputNeuron = Neuron(name: 'Input');
final outputNeuron = Neuron(name: 'Output');
final edge = Edge(inputNeuron: inputNeuron, outputNeuron: outputNeuron, weight: 0.5);

The Edge class is used to define the connections in a neural network, with each edge having a weight that influences the strength of the connection. This is crucial for the propagation of signals and the adjustment of weights during the learning process.

Constructors

Edge({required Neuron inputNeuron, required Neuron outputNeuron, double? weight})

Properties

hashCode int
The hash code for this object.
no setterinherited
inputNeuron Neuron
final
outputNeuron Neuron
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
weight double?
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited