mirror of
https://github.com/jung-geun/PSO.git
synced 2025-12-20 04:50:45 +09:00
랜덤 시드를 42로 설정하여 난수 생성을 일관성 있게 변경
This commit is contained in:
@@ -530,7 +530,7 @@ class Optimizer:
|
||||
* (epoch % weight_reduction)
|
||||
/ weight_reduction
|
||||
)
|
||||
rng = np.random.default_rng()
|
||||
rng = np.random.default_rng(seed=42)
|
||||
for i in part_pbar:
|
||||
part_pbar.set_description(
|
||||
f"loss: {min_loss:.4f} acc: {max_acc:.4f} mse: {min_mse:.4f}"
|
||||
|
||||
Reference in New Issue
Block a user