mirror of
https://github.com/ltcptgeneral/cse151b-final-project.git
synced 2024-12-26 18:19:08 +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)
|
action, _states = model.predict(obs)
|
||||||
obs, rewards, done, info = env.step(action)
|
obs, rewards, done, info = env.step(action)
|
||||||
|
|
||||||
print(action, obs, rewards)
|
|
||||||
|
|
||||||
return total_correct / test_num
|
return total_correct / test_num
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
@ -36,5 +34,5 @@ if __name__ == "__main__":
|
|||||||
print(env)
|
print(env)
|
||||||
print(model)
|
print(model)
|
||||||
|
|
||||||
train(model, env, total_timesteps=10000)
|
train(model, env, total_timesteps=500000)
|
||||||
print(test(model, env, test_num=1))
|
print(test(model, env))
|
Loading…
Reference in New Issue
Block a user