update
This commit is contained in:
@@ -5,7 +5,7 @@ Author: John
|
|||||||
Email: johnjim0816@gmail.com
|
Email: johnjim0816@gmail.com
|
||||||
Date: 2021-03-11 17:59:16
|
Date: 2021-03-11 17:59:16
|
||||||
LastEditor: John
|
LastEditor: John
|
||||||
LastEditTime: 2021-07-15 08:49:31
|
LastEditTime: 2021-07-15 08:52:59
|
||||||
Discription:
|
Discription:
|
||||||
Environment:
|
Environment:
|
||||||
'''
|
'''
|
||||||
@@ -55,7 +55,6 @@ def train(cfg,env,agent):
|
|||||||
action = agent.choose_action(state)
|
action = agent.choose_action(state)
|
||||||
while True:
|
while True:
|
||||||
# for t in range(cfg.n_steps):
|
# for t in range(cfg.n_steps):
|
||||||
|
|
||||||
next_state, reward, done = env.step(action)
|
next_state, reward, done = env.step(action)
|
||||||
ep_reward+=reward
|
ep_reward+=reward
|
||||||
next_action = agent.choose_action(next_state)
|
next_action = agent.choose_action(next_state)
|
||||||
|
|||||||
Reference in New Issue
Block a user