flask8 examine

This commit is contained in:
blessyyyu 2022-03-23 18:41:03 +08:00
parent 07b7beabad
commit 255eec296a
2 changed files with 3 additions and 4 deletions

View File

@ -23,7 +23,7 @@ def load_label_and_score(keyword, label_file, score_file):
for line in fin: for line in fin:
arr = line.strip().split() arr = line.strip().split()
key = arr[0] key = arr[0]
str_list = arr[1: ] str_list = arr[1:]
scores = list(map(float, str_list)) scores = list(map(float, str_list))
score_table[key].append(scores) score_table[key].append(scores)
keyword_table = {} keyword_table = {}
@ -93,4 +93,3 @@ if __name__ == '__main__':
false_alarm_per_hour, false_alarm_per_hour,
false_reject_rate)) false_reject_rate))
threshold += args.step threshold += args.step