Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
h-mayorquin committed Jan 18, 2019
2 parents cc07217 + d154630 commit 885271f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions network.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ def update_continuous(self, dt=1.0, sigma=None):


class BCPNNFast:
def __init__(self, hypercolumns, minicolumns, beta=None, w=None, G=1.0, tau_m=0.050, g_w=1.0, g_w_ampa=1.0, g_beta=1,
def __init__(self, hypercolumns, minicolumns, beta=None, w=None, G=1.0, tau_m=0.020, g_w=1.0, g_w_ampa=1.0, g_beta=1,
tau_z_pre=0.150, tau_z_post=0.005, tau_z_pre_ampa=0.005, tau_z_post_ampa=0.005, tau_p=10.0, tau_k=0.010,
tau_a=2.70, g_a=97.0, g_I=10.0, p=1.0, k=0.0, sigma=1.0, epsilon=1e-20, k_inner=False, prng=np.random):
# Initial values are taken from the paper on memory by Marklund and Lansner also from Phil's paper
Expand Down Expand Up @@ -205,7 +205,7 @@ def __init__(self, hypercolumns, minicolumns, beta=None, w=None, G=1.0, tau_m=0.
self.p = p

# State variables
self.o = np.ones(self.n_units) * (1.0 / self.minicolumns)
self.o = np.zeros(self.n_units) * (1.0 / self.minicolumns)
self.s = np.log(np.ones(self.n_units) * (1.0 / self.minicolumns))
self.beta = np.log(np.ones_like(self.o) * (1.0 / self.minicolumns))

Expand Down Expand Up @@ -248,7 +248,7 @@ def get_parameters(self):

def reset_values(self, keep_connectivity=True):
# State variables
self.o = np.ones(self.n_units) * (1.0 / self.minicolumns)
self.o = np.zeros(self.n_units) * (1.0 / self.minicolumns)
self.s = np.log(np.ones(self.n_units) * (1.0 / self.minicolumns))
self.beta = np.log(np.ones_like(self.o) * (1.0 / self.minicolumns))

Expand Down

0 comments on commit 885271f

Please sign in to comment.