update
This commit is contained in:
@@ -5,14 +5,13 @@ Author: John
|
||||
Email: johnjim0816@gmail.com
|
||||
Date: 2020-09-11 23:03:00
|
||||
LastEditor: John
|
||||
LastEditTime: 2021-03-12 16:52:26
|
||||
LastEditTime: 2021-03-12 21:16:50
|
||||
Discription:
|
||||
Environment:
|
||||
'''
|
||||
|
||||
import sys,os
|
||||
sys.path.append(os.getcwd()) # 添加当前终端路径
|
||||
import argparse
|
||||
import gym
|
||||
import datetime
|
||||
|
||||
@@ -108,7 +107,6 @@ if __name__ == "__main__":
|
||||
agent = QLearning(n_actions,cfg)
|
||||
rewards,ma_rewards = train(cfg,env,agent)
|
||||
agent.save(path=SAVED_MODEL_PATH)
|
||||
# eval(cfg,env,agent)
|
||||
save_results(rewards,ma_rewards,tag='train',path=RESULT_PATH)
|
||||
plot_rewards(rewards,ma_rewards,tag="train",algo = "On-Policy First-Visit MC Control",path=RESULT_PATH)
|
||||
|
||||
|
||||
Binary file not shown.
Binary file not shown.
|
Before Width: | Height: | Size: 34 KiB |
Binary file not shown.
BIN
codes/QLearning/results/20210313-110213/ma_rewards_train.npy
Normal file
BIN
codes/QLearning/results/20210313-110213/ma_rewards_train.npy
Normal file
Binary file not shown.
BIN
codes/QLearning/results/20210313-110213/rewards_curve_train.png
Normal file
BIN
codes/QLearning/results/20210313-110213/rewards_curve_train.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 39 KiB |
BIN
codes/QLearning/results/20210313-110213/rewards_train.npy
Normal file
BIN
codes/QLearning/results/20210313-110213/rewards_train.npy
Normal file
Binary file not shown.
Binary file not shown.
BIN
codes/QLearning/saved_model/20210313-110213/Qleaning_model.pkl
Normal file
BIN
codes/QLearning/saved_model/20210313-110213/Qleaning_model.pkl
Normal file
Binary file not shown.
Reference in New Issue
Block a user