update
This commit is contained in:
@@ -5,7 +5,7 @@ Author: John
|
||||
Email: johnjim0816@gmail.com
|
||||
Date: 2021-03-12 16:58:16
|
||||
LastEditor: John
|
||||
LastEditTime: 2021-03-12 17:03:05
|
||||
LastEditTime: 2021-03-13 11:02:50
|
||||
Discription:
|
||||
Environment:
|
||||
'''
|
||||
@@ -42,11 +42,11 @@ class Sarsa(object):
|
||||
import dill
|
||||
torch.save(
|
||||
obj=self.Q,
|
||||
f=path+"Sarsa_model.pkl",
|
||||
f=path+"sarsa_model.pkl",
|
||||
pickle_module=dill
|
||||
)
|
||||
def load(self, path):
|
||||
'''从文件中读取数据到 Q表格
|
||||
'''
|
||||
import dill
|
||||
self.Q =torch.load(f=path+'Sarsa_model.pkl',pickle_module=dill)
|
||||
self.Q =torch.load(f=path+'sarsa_model.pkl',pickle_module=dill)
|
||||
Binary file not shown.
Binary file not shown.
|
Before Width: | Height: | Size: 37 KiB |
Binary file not shown.
BIN
codes/Sarsa/results/20210313-110256/ma_rewards_train.npy
Normal file
BIN
codes/Sarsa/results/20210313-110256/ma_rewards_train.npy
Normal file
Binary file not shown.
BIN
codes/Sarsa/results/20210313-110256/rewards_curve_train.png
Normal file
BIN
codes/Sarsa/results/20210313-110256/rewards_curve_train.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 41 KiB |
BIN
codes/Sarsa/results/20210313-110256/rewards_train.npy
Normal file
BIN
codes/Sarsa/results/20210313-110256/rewards_train.npy
Normal file
Binary file not shown.
Binary file not shown.
BIN
codes/Sarsa/saved_model/20210313-110256/sarsa_model.pkl
Normal file
BIN
codes/Sarsa/saved_model/20210313-110256/sarsa_model.pkl
Normal file
Binary file not shown.
Reference in New Issue
Block a user