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

Method test_init

test/analysis/test_analyzers.py:14–25  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

12 """
13
14 def test_init(self):
15 ma = MatplotlibAnalyzer()
16 assert plt.isinteractive()
17
18 ta = TensorboardAnalyzer("./logs/init")
19
20 # check to ensure path was written
21 assert os.path.isdir("./logs/init")
22
23 # check to ensure we can write data
24 ta.writer.add_scalar("init_scalar", 100.0, 0)
25 ta.writer.close()
26
27 def test_plot_runs(self):
28 ma = MatplotlibAnalyzer()

Callers 1

test_analyzers.pyFile · 0.45

Calls 3

MatplotlibAnalyzerClass · 0.90
TensorboardAnalyzerClass · 0.90
closeMethod · 0.45

Tested by

no test coverage detected