MCPcopy Create free account
hub / github.com/BindsNET/bindsnet / add_monitor

Method add_monitor

bindsnet/network/network.py:151–161  ·  view source on GitHub ↗

Adds a monitor on a network object to the network. :param monitor: An instance of class ``Monitor``. :param name: Logical name of monitor object.

(self, monitor: AbstractMonitor, name: str)

Source from the content-addressed store, hash-verified

149 connection.train(self.learning)
150
151 def add_monitor(self, monitor: AbstractMonitor, name: str) -> None:
152 # language=rst
153 """
154 Adds a monitor on a network object to the network.
155
156 :param monitor: An instance of class ``Monitor``.
157 :param name: Logical name of monitor object.
158 """
159 self.monitors[name] = monitor
160 monitor.network = self
161 monitor.dt = self.dt
162
163 def save(self, file_name: str) -> None:
164 # language=rst

Callers 15

test_add_objectsMethod · 0.95
mainFunction · 0.95
TestMonitorClass · 0.80
TestNetworkMonitorClass · 0.80
loc1d_mnist.pyFile · 0.80
SOM_LM-SNNs.pyFile · 0.80
conv3d_MNIST.pyFile · 0.80
reservoir.pyFile · 0.80
batch_eth_mnist.pyFile · 0.80
MCC_reservoir.pyFile · 0.80

Calls

no outgoing calls

Tested by 1

test_add_objectsMethod · 0.76