haguettaz / rusty-snn

0 stars 0 forks source link

Input and Connection data duplication #12

Open haguettaz opened 1 week ago

haguettaz commented 1 week ago

Eliminate data duplication between inputs and connections arrays.

The connection information is currently duplicated between the neuron's inputs array and the global connections array, which could lead to data inconsistency and maintenance issues. Consider keeping connection information in only one place.

Consider one of these approaches:

  1. Remove the inputs arrays and compute them dynamically from the connections array when loading the network
  2. Remove the connections array and derive it from the neurons' inputs arrays
  3. Use references/IDs in the inputs array that point to the corresponding connection in the connections array

Also applies to: 26-33, 37-48

_Originally posted by @coderabbitai[bot] in https://github.com/haguettaz/rusty-snn/pull/11#discussion_r1836183145_