1 Star 1 Fork 1

静辰寒韵 / SNARM-UAV-Learning

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
plot_results.py 837 Bytes
AI 代码解读
一键复制 编辑 原始数据 按行查看 历史
静辰寒韵 提交于 2023-03-13 09:42 . 仿真代码
# -*- coding: utf-8 -*-
"""
Created on Thu Jan 2 12:06:58 2020
@author: DELL
"""
import numpy as np
import matplotlib.pyplot as plt
result_no_mapping = np.load('Dueling_DDQN_MultiStepLeaning_main_Results.npz')
return_mov_avg_no_mapping = result_no_mapping['arr_1']
# print(result_no_mapping.files)
# print(return_mov_avg_no_mapping)
# result_SNARM = np.load('SNARM_main_Results.npz')
# return_mov_avg_SNARM = result_SNARM['arr_1']
# print(return_mov_avg_SNARM)
fig = plt.figure(100)
plt.plot(np.arange(len(return_mov_avg_no_mapping)), return_mov_avg_no_mapping, 'r-',
linewidth=0.5)
# plt.plot(np.arange(len(return_mov_avg_SNARM)), return_mov_avg_SNARM, 'b-', linewidth=5)
plt.grid()
plt.xlabel('Episode')
plt.ylabel('Moving average of return per episode')
plt.legend(['Direct RL'])
plt.show()
Python
1
https://gitee.com/XGX_CURRY_TOM/SNARM-UAV-Learning.git
git@gitee.com:XGX_CURRY_TOM/SNARM-UAV-Learning.git
XGX_CURRY_TOM
SNARM-UAV-Learning
SNARM-UAV-Learning
master

搜索帮助