From 5f50d01ae32f57bd8774ac228f15b255f38b2c03 Mon Sep 17 00:00:00 2001 From: mlxu995 <228311995@qq.com> Date: Thu, 16 Dec 2021 13:08:23 +0800 Subject: [PATCH] format --- kws/bin/plot_det_curve.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/kws/bin/plot_det_curve.py b/kws/bin/plot_det_curve.py index 64feebb..71e1472 100644 --- a/kws/bin/plot_det_curve.py +++ b/kws/bin/plot_det_curve.py @@ -46,7 +46,7 @@ def plot_det_curve(keywords, stats_dir, figure_file): plt.ylim([0, 0.35]) plt.xticks([0, 1, 2, 3, 4, 5], ['0', '1', '2', '3', '4', '5']) plt.yticks([0, 0.05, 0.10, 0.15, 0.20, 0.25, 0.30, 0.35], - ['0', '5', '10', '15', '20', '25', '30', '35']) + ['0', '5', '10', '15', '20', '25', '30', '35']) plt.xlabel('False Alarm Per Hour') plt.ylabel('False Rejection Rate (\\%)') plt.grid(linestyle='--') @@ -56,10 +56,15 @@ def plot_det_curve(keywords, stats_dir, figure_file): if __name__ == '__main__': parser = argparse.ArgumentParser(description='plot det curve') - parser.add_argument('--keywords', required=True, + parser.add_argument( + '--keywords', + required=True, help='keywords, must in the same order as in "dict/words.txt" separated by ", "') parser.add_argument('--stats_dir', required=True, help='dir of stats files') - parser.add_argument('--figure_file', required=True, help='path to save det curve') + parser.add_argument( + '--figure_file', + required=True, + help='path to save det curve') args = parser.parse_args()