Skip to content

Instantly share code, notes, and snippets.

View hjpithadia's full-sized avatar

Hirsh P hjpithadia

View GitHub Profile
import numpy as np
import itertools
# update rule for neuron x1
def update_1((a, b, c)):
test = c-b+2
if (test > 0):
new = 1
elif (test == 0):
new = a