Skip to content

Commit acf442e

Browse files
committed
REINFORCE experiment #1 with seed 7081960
1 parent d54ad15 commit acf442e

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

main.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import torch
2-
2+
import numpy as np
33
import helpers
44
from environment import CarRacingEnv
55
from trainer import Trainer
@@ -22,6 +22,13 @@
2222
'train': True
2323
}
2424

25+
# Reproducibility: manual seeding
26+
seed = 7081960
27+
torch.manual_seed(seed)
28+
torch.cuda.manual_seed(seed)
29+
np.random.seed(seed)
30+
31+
2532
env = CarRacingEnv(device, hyperparams['stack_frames'], hyperparams['train'])
2633
helpers.display_start()
2734
if hyperparams['train']:

params/policy-params.dl

0 Bytes
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)