mirror of
https://github.com/ltcptgeneral/cse151b-final-project.git
synced 2024-11-10 07:04:45 +00:00
try more time steps
This commit is contained in:
parent
848ea719b7
commit
dd5889da33
@ -25,8 +25,6 @@ def test(model, env, test_num=1000):
|
||||
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