Skip to content

Commit 23473ab

Browse files
authored
Add patched synapse (#80)
* Update __init__.py Add point to patched components * Add patched in __init__.py Add patched synapses importing * Add patched synaptic components * Delete ngclearn/components/synapses/patched/__pycache__ directory * Update __init__.py new line characters added * Update hebbianPatchedSynapse.py * Update patchedSynapse.py new line characters added * Update staticPatchedSynapse.py new line characters added * Update staticPatchedSynapse.py New line characters + comments for describing each input vars * Update patchedSynapse.py Removed a comment line * Update hebbianPatchedSynapse.py remove unused arguments * Update hebbianPatchedSynapse.py * Update hebbianPatchedSynapse.py add description for w_mask * Update hebbianPatchedSynapse.py * Update hebbianPatchedSynapse.py * Update patchedSynapse.py * Update patchedSynapse.py * Update hebbianPatchedSynapse.py
1 parent de53d20 commit 23473ab

File tree

6 files changed

+686
-3
lines changed

6 files changed

+686
-3
lines changed

ngclearn/components/__init__.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
from .jaxComponent import JaxComponent
2+
3+
24
## point to rate-coded cell component types
35
from .neurons.graded.rateCell import RateCell
46
from .neurons.graded.gaussianErrorCell import GaussianErrorCell
57
from .neurons.graded.laplacianErrorCell import LaplacianErrorCell
68
from .neurons.graded.rewardErrorCell import RewardErrorCell
9+
10+
711
## point to standard spiking cell component types
812
from .neurons.spiking.sLIFCell import SLIFCell
913
from .neurons.spiking.LIFCell import LIFCell
@@ -12,14 +16,20 @@
1216
from .neurons.spiking.adExCell import AdExCell
1317
from .neurons.spiking.fitzhughNagumoCell import FitzhughNagumoCell
1418
from .neurons.spiking.izhikevichCell import IzhikevichCell
19+
20+
1521
## point to transformer/operater component types
1622
from .other.varTrace import VarTrace
1723
from .other.expKernel import ExpKernel
1824
from ngclearn.components.synapses.modulated.eligibilityTrace import EligibilityTrace
25+
26+
1927
## point to input encoder component types
2028
from .input_encoders.bernoulliCell import BernoulliCell
2129
from .input_encoders.poissonCell import PoissonCell
2230
from .input_encoders.latencyCell import LatencyCell
31+
32+
2333
## point to synapse component types
2434
from .synapses.denseSynapse import DenseSynapse
2535
from .synapses.staticSynapse import StaticSynapse
@@ -30,6 +40,8 @@
3040
from .synapses.hebbian.eventSTDPSynapse import EventSTDPSynapse
3141
from .synapses.hebbian.BCMSynapse import BCMSynapse
3242
from .synapses.STPDenseSynapse import STPDenseSynapse
43+
44+
3345
## point to convolutional component types
3446
from .synapses.convolution.convSynapse import ConvSynapse
3547
from .synapses.convolution.staticConvSynapse import StaticConvSynapse
@@ -41,5 +53,13 @@
4153
from .synapses.convolution.traceSTDPDeconvSynapse import TraceSTDPDeconvSynapse
4254
## point to modulated component types
4355
from .synapses.modulated.MSTDPETSynapse import MSTDPETSynapse
56+
57+
4458
## point to monitors
4559
from .monitor import Monitor
60+
61+
## point to patched component types
62+
from .synapses.patched.patchedSynapse import PatchedSynapse
63+
from .synapses.patched.staticPatchedSynapse import StaticPatchedSynapse
64+
from .synapses.patched.hebbianPatc
65+
Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,20 @@
11
from .denseSynapse import DenseSynapse
22
from .staticSynapse import StaticSynapse
3+
4+
35
## short-term plasticity components
46
from .STPDenseSynapse import STPDenseSynapse
7+
8+
59
## dense synaptic components
610
from .hebbian.hebbianSynapse import HebbianSynapse
711
from .hebbian.STDPSynapse import STDPSynapse
812
from .hebbian.traceSTDPSynapse import TraceSTDPSynapse
913
from .hebbian.expSTDPSynapse import ExpSTDPSynapse
1014
from .hebbian.eventSTDPSynapse import EventSTDPSynapse
1115
from .hebbian.BCMSynapse import BCMSynapse
16+
17+
1218
## conv/deconv synaptic components
1319
from .convolution.convSynapse import ConvSynapse
1420
from .convolution.staticConvSynapse import StaticConvSynapse
@@ -18,9 +24,13 @@
1824
from .convolution.staticDeconvSynapse import StaticDeconvSynapse
1925
from .convolution.hebbianDeconvSynapse import HebbianDeconvSynapse
2026
from .convolution.traceSTDPDeconvSynapse import TraceSTDPDeconvSynapse
27+
28+
2129
## modulated synaptic components
2230
from .modulated.MSTDPETSynapse import MSTDPETSynapse
31+
2332
## patched synaptic components
24-
## from .patched.patchedSynapse import PatchedSynapse
25-
## from .patched.staticPatchedSynapse import StaticPatchedSynapse
26-
## from .patched.hebbianPatchedSynapse import HebbianPatchedSynapse
33+
from .patched.patchedSynapse import PatchedSynapse
34+
from .patched.staticPatchedSynapse import StaticPatchedSynapse
35+
from .patched.hebbianPatchedSynapse import HebbianPatchedSynapse
36+
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
## patched synaptic components
2+
from .patchedSynapse import PatchedSynapse
3+
from .staticPatchedSynapse import StaticPatchedSynapse
4+
from .hebbianPatchedSynapse import HebbianPatchedSynapse
5+
6+
7+

0 commit comments

Comments
 (0)