refactored

This commit is contained in:
2025-12-19 15:20:04 +01:00
parent a293fc31a0
commit a47922cb1c
8 changed files with 92 additions and 124 deletions
+2 -2
View File
@@ -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}\")"
]
},