refactored
This commit is contained in:
+2
-2
@@ -213,8 +213,8 @@
|
||||
"# Test with test data\n",
|
||||
"test_batch = Mat([[0,0,0], [0,1,0], [1,0,0], [1,1,0]], dtype=np.float64)\n",
|
||||
"for pattern in test_batch:\n",
|
||||
"\th = layer.entity.gibbs_v_to_h(pattern)\n",
|
||||
"\tv = layer.entity.gibbs_h_to_v(h)\n",
|
||||
"\th = layer.entity.forward(pattern)\n",
|
||||
"\tv = layer.entity.reconstruct(h)\n",
|
||||
"\tprint(f\"P{pattern} : {v}\")"
|
||||
]
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user