Skip to content

Commit 1ac6f2c

Browse files
author
Alexander Ororbia
committed
commented out deprecator in hebb-syn and exp-kernel
1 parent 10ef0e0 commit 1ac6f2c

File tree

4 files changed

+9
-11
lines changed

4 files changed

+9
-11
lines changed

ngclearn/components/other/expKernel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from jax import numpy as jnp, random, jit
33
from functools import partial
44
from ngclearn.utils import tensorstats
5-
from ngcsimlib.deprecators import deprecate_args
5+
from ngcsimlib import deprecate_args
66

77
from ngcsimlib.logger import info, warn
88
from ngcsimlib.compartment import Compartment

ngclearn/components/synapses/convolution/traceSTDPConvSynapse.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414

1515
class TraceSTDPConvSynapse(ConvSynapse): ## trace-based STDP convolutional cable
1616
"""
17-
A synaptic convolutional cable that adjusts its filter efficacies via a
18-
trace-based form of spike-timing-dependent plasticity (STDP).
17+
A specialized synaptic convolutional cable that adjusts its filter efficacies via a trace-based form of
18+
spike-timing-dependent plasticity (STDP).
1919
2020
| --- Synapse Compartments: ---
2121
| inputs - input (takes in external signals)
@@ -131,8 +131,7 @@ def _init(self, batch_size, x_size, shape, stride, padding, pad_args, weights):
131131
dy = (_dx.shape[2] - _x.shape[2])
132132
self.x_delta_shape = (dx, dy)
133133

134-
#@staticmethod
135-
def _compute_update(self): #pretrace_target, Aplus, Aminus, stride, pad_args, delta_shape, preSpike, preTrace, postSpike, postTrace
134+
def _compute_update(self):
136135
## Compute long-term potentiation to filters
137136
dW_ltp = calc_dK_conv(
138137
self.preTrace.get() - self.pretrace_target, self.postSpike.get() * self.Aplus, delta_shape=self.delta_shape,
@@ -162,8 +161,7 @@ def evolve(self):
162161
self.dWeights.set(dWeights)
163162

164163
@compilable
165-
def backtransmit(self):
166-
## action-backpropagating routine
164+
def backtransmit(self): ## action-backpropagating co-routine
167165
## calc dInputs - adjustment w.r.t. input signal
168166
k_size, k_size, n_in_chan, n_out_chan = self.shape
169167
# antiPad = None

ngclearn/components/synapses/convolution/traceSTDPDeconvSynapse.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212

1313
class TraceSTDPDeconvSynapse(DeconvSynapse): ## trace-based STDP deconvolutional cable
1414
"""
15-
A synaptic deconvolutional (transposed convolutional) cable that adjusts its
16-
filter efficacies via a trace-based form of spike-timing-dependent plasticity (STDP).
15+
A specialized synaptic deconvolutional (transposed convolutional) cable that adjusts its filter efficacies via a
16+
trace-based form of spike-timing-dependent plasticity (STDP).
1717
1818
| --- Synapse Compartments: ---
1919
| inputs - input (takes in external signals)
@@ -154,7 +154,7 @@ def evolve(self):
154154
self.dWeights.set(dWeights)
155155

156156
@compilable
157-
def backtransmit(self): ## action-backpropagating routine
157+
def backtransmit(self): ## action-backpropagating co-routine
158158
## calc dInputs
159159
dInputs = calc_dX_deconv(
160160
self.weights.get(), self.postSpike.get(), delta_shape=self.x_delta_shape, stride_size=self.stride,

ngclearn/components/synapses/hebbian/hebbianSynapse.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
from ngclearn.components.synapses import DenseSynapse
1010
from ngclearn.utils import tensorstats
11-
from ngcsimlib.deprecators import deprecate_args
11+
from ngcsimlib import deprecate_args
1212

1313
@partial(jit, static_argnums=[3, 4, 5, 6, 7, 8, 9])
1414
def _calc_update(pre, post, W, w_bound, is_nonnegative=True, signVal=1.,

0 commit comments

Comments
 (0)