Skip to content

Commit accfc94

Browse files
committed
Update log statement
1 parent 9e73fd8 commit accfc94

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pyAudioProcessing/run_classification.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,8 @@ def classify_data(data_dirs, feature_names, classifier, classifier_name):
9696
indx = list(res[1]).index(max(res[1]))
9797
if res[2][indx] == fol.split("/")[-1]:
9898
correctly_classified += 1
99+
if correctly_classified == 0:
100+
print("Either you passed in data with unknown classes, or")
99101
print(
100102
"{} out of {} instances were classified correctly".format(
101103
correctly_classified, num_files

0 commit comments

Comments
 (0)