def plot_reward_by_second(self, ax=None):
self.make_palette()
full_data = pd.DataFrame()
for idx, (benchmark_data, name) in enumerate(self.benchmarks):
plot_data = to_timeseries(benchmark_data, x_label="Second", y_label="Average Episode Reward",
target=rewards_by_second, cut_x=benchmark_data.min_x('seconds'), smooth=10)
plot_data['Benchmark'] = name
full_data = full_data.append(plot_data)
plot = sns.tsplot(data=full_data, time="Second", value="Average Episode Reward", unit="experiment",
condition='Benchmark', ax=ax, ci=[68, 95], color=self.palette)
return plot
result_plotter.py 文件源码
python
阅读 44
收藏 0
点赞 0
评论 0
评论列表
文章目录