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)
|
||||
dbh -= np.sum(h_probs, 0)
|
||||
|
||||
return dw, dbv, dbh
|
||||
return dw, dbv, dbh
|
||||
|
||||
@@ -146,6 +146,7 @@ def xor():
|
||||
|
||||
if __name__ == "__main__":
|
||||
xor()
|
||||
print("Test: [passed]")
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -44,3 +44,4 @@ if __name__ == "__main__":
|
||||
|
||||
assert p2.__dict__ == p1.__dict__
|
||||
|
||||
print("Test: [passed]")
|
||||
|
||||
+3
-1
@@ -17,4 +17,6 @@ if __name__ == "__main__":
|
||||
try:
|
||||
stack.layer_add(Layer(f"Layer-{0}", (9,9), params))
|
||||
except StackException as e:
|
||||
print(f"Exception raised: [{e}] -> success!")
|
||||
print(f"Exception raised: [{e}] -> success!")
|
||||
|
||||
print("Test: [passed]")
|
||||
|
||||
Reference in New Issue
Block a user