- removed Optimizer

- refactored training
- use static seed for random (for better comparison)
- simplified StackDeep.train
This commit is contained in:
2025-12-20 20:12:19 +01:00
parent 5f5c7c6d77
commit 61c762150c
5 changed files with 30 additions and 116 deletions
+2 -1
View File
@@ -13,7 +13,8 @@ else:
def convert(src: Mat):
return src
np.random.seed(int(time.monotonic()))
np.random.seed(12345)
def uniform(shape: tuple, mu: float = 0.5, std: float = 1.0) -> Mat:
return std * (np.random.rand(shape[0], shape[1]) + mu - 0.5)