From 2c09cae2b166ed43b693d3bc7f12dfe2b4751299 Mon Sep 17 00:00:00 2001 From: tianzikang Date: Sun, 18 Sep 2022 21:12:03 +0800 Subject: [PATCH] code clean --- model.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/model.py b/model.py index c4adaeb..a2ad6bf 100644 --- a/model.py +++ b/model.py @@ -307,8 +307,4 @@ def evaluate(self, env, episode_num=32): [sum(eval_ep_rewards), len(eval_ep_rewards), 1. if 'battle_won' in info and info['battle_won'] else 0.] ) - # start = episode_num // 4 - # end = episode_num * 3 // 4 - # sort_eval_data = sorted(eval_data, key=lambda x: x[-1])[start: end] # sorted by win or nor - # return np.mean(sort_eval_data, axis=0) return np.mean(eval_data, axis=0)