Skip to content

Commit 80f677d

Browse files
committed
update repository
1 parent 35f57ad commit 80f677d

File tree

8 files changed

+5
-215
lines changed

8 files changed

+5
-215
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@
22
*.pydevproject
33
.idea/
44
.DS_Store
5-
__pycache__
5+
__pycache__
6+
./Code 2. Cartpole/6. A3C/Cartpole_A3C.pgy
Loading
Binary file not shown.

Code 2. Cartpole/6. A3C/Cartpole_A3C.py

Lines changed: 0 additions & 211 deletions
This file was deleted.
Binary file not shown.
Binary file not shown.

Code 4. Mountain Car/1. DQN/Mountaincar_DQN.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
class DQNAgent:
1414
def __init__(self, state_size, action_size):
1515
# Cartpole이 학습하는 것을 보려면 "True"로 바꿀 것
16-
self.render = False
16+
self.render = True
1717

1818
# state와 action의 크기를 가져와서 모델을 생성하는데 사용함
1919
self.state_size = state_size
@@ -23,8 +23,8 @@ def __init__(self, state_size, action_size):
2323
# deque를 통해서 replay memory 생성
2424
self.discount_factor = 0.99
2525
self.learning_rate = 0.001
26-
self.epsilon = 0.2
27-
self.epsilon_min = 0.05
26+
self.epsilon = 1.0
27+
self.epsilon_min = 0.005
2828
self.epsilon_decay = (self.epsilon - self.epsilon_min) / 50000
2929
self.batch_size = 64
3030
self.train_start = 1000
Binary file not shown.

0 commit comments

Comments
 (0)