mirror of
https://github.com/ltcptgeneral/cse151b-final-project.git
synced 2024-12-25 17:49:10 +00:00
try more time steps
This commit is contained in:
parent
848ea719b7
commit
dd5889da33
@ -24,9 +24,7 @@ def test(model, env, test_num=1000):
|
||||
while not done:
|
||||
action, _states = model.predict(obs)
|
||||
obs, rewards, done, info = env.step(action)
|
||||
|
||||
print(action, obs, rewards)
|
||||
|
||||
|
||||
return total_correct / test_num
|
||||
|
||||
if __name__ == "__main__":
|
||||
@ -36,5 +34,5 @@ if __name__ == "__main__":
|
||||
print(env)
|
||||
print(model)
|
||||
|
||||
train(model, env, total_timesteps=10000)
|
||||
print(test(model, env, test_num=1))
|
||||
train(model, env, total_timesteps=500000)
|
||||
print(test(model, env))
|
Loading…
Reference in New Issue
Block a user