Objets/Documentation
experience.py
Je simule le remplacement de connexions et les témoins figés.
Télécharger ↓"""Four-channel delayed matching with a finite synapse budget, in discrete time."""
from collections import deque
from fractions import Fraction
from itertools import permutations
import json
CHANNELS=4
WINDOW=16
FIRST=(2,0,3,1) # Input sensor -> target relay
SECOND=(1,3,0,2)
def develop(schedule,confounded=False):
# Each post event is one tick after its driver. Replace the weakest incoming
# link using observations from the most recent 16 episodes. Ties favour low IDs.
history=deque(maxlen=WINDOW)