Skip to content

Commit c16d15c

Browse files
changed accuracy_cal
1 parent 4a076ad commit c16d15c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def accuracy_cal(output,answer):
135135
if pred[i]==answer[i]:
136136
count+=1
137137

138-
return 100*count/int(pred.shape[0])
138+
return count
139139

140140
def store_in_file(word_to_int,int_to_word,char_to_int,
141141
int_to_char,training_data):

0 commit comments

Comments
 (0)