Skip to content

Commit

Permalink
Update main_train.py
Browse files Browse the repository at this point in the history
  • Loading branch information
yjwong1999 committed Jun 14, 2023
1 parent 6136e99 commit ccc2add
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions main_train.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,15 +219,6 @@
# judge if pause the whole system
if not system.render_obj.pause:
# 2 choose action acoording to current state
"""
epsilon = 0.5
epsilon = epsilon + epsilon * (episode_cnt*100 + step_cnt)/(step_num*episode_num)
ran = np.random.uniform()
if ran < epsilon:
action = agent.choose_action(observersion, greedy=0)
else:
action = list(np.random.uniform(-1,1,n_actions))
"""
action_1 = agent_1.choose_action(observersion_1, greedy=agent_1_param_dic["action_noise_factor"] * math.pow((1-episode_cnt / episode_num), 2))
action_2 = agent_2.choose_action(observersion_2, greedy=agent_2_param_dic["action_noise_factor"]* math.pow((1-episode_cnt / episode_num), 2))
if if_BS:
Expand Down

0 comments on commit ccc2add

Please sign in to comment.