added Test passed message
This commit is contained in:
+1
-1
@@ -41,4 +41,4 @@ def cd_jens(v_states: np.ndarray, params: RbmParams, v_to_ph: Callable, h_to_pv:
|
|||||||
dbv -= np.sum(v_probs, 0)
|
dbv -= np.sum(v_probs, 0)
|
||||||
dbh -= np.sum(h_probs, 0)
|
dbh -= np.sum(h_probs, 0)
|
||||||
|
|
||||||
return dw, dbv, dbh
|
return dw, dbv, dbh
|
||||||
|
|||||||
@@ -146,6 +146,7 @@ def xor():
|
|||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
xor()
|
xor()
|
||||||
|
print("Test: [passed]")
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -44,3 +44,4 @@ if __name__ == "__main__":
|
|||||||
|
|
||||||
assert p2.__dict__ == p1.__dict__
|
assert p2.__dict__ == p1.__dict__
|
||||||
|
|
||||||
|
print("Test: [passed]")
|
||||||
|
|||||||
+3
-1
@@ -17,4 +17,6 @@ if __name__ == "__main__":
|
|||||||
try:
|
try:
|
||||||
stack.layer_add(Layer(f"Layer-{0}", (9,9), params))
|
stack.layer_add(Layer(f"Layer-{0}", (9,9), params))
|
||||||
except StackException as e:
|
except StackException as e:
|
||||||
print(f"Exception raised: [{e}] -> success!")
|
print(f"Exception raised: [{e}] -> success!")
|
||||||
|
|
||||||
|
print("Test: [passed]")
|
||||||
|
|||||||
+3
-3
@@ -1,10 +1,10 @@
|
|||||||
{
|
{
|
||||||
"learning_rate": 0,
|
"learning_rate": 0.1,
|
||||||
"momentum": 0,
|
"momentum": 0.5,
|
||||||
"weight_decay": 0,
|
"weight_decay": 0,
|
||||||
"num_epochs": 31101970,
|
"num_epochs": 31101970,
|
||||||
"num_gibbs_samples": 1,
|
"num_gibbs_samples": 1,
|
||||||
"mini_batch_size": 1,
|
"mini_batch_size": 0,
|
||||||
"do_gaussian_visible": false,
|
"do_gaussian_visible": false,
|
||||||
"do_gaussian_hidden": false,
|
"do_gaussian_hidden": false,
|
||||||
"do_rao_blackwell": false,
|
"do_rao_blackwell": false,
|
||||||
|
|||||||
Reference in New Issue
Block a user