labeling update

This commit is contained in:
annealias 2019-01-31 09:46:46 +01:00
parent d4b0de35d4
commit 97c2bde73d
5 changed files with 24182 additions and 24316 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -170,10 +170,10 @@ class MNBInteractive:
predictions_test = classifier.predict(testing_data_r) predictions_test = classifier.predict(testing_data_r)
#print and store metrics #print and store metrics
rec = recall_score(y[test], predictions_test, average=None) rec = recall_score(y[test], predictions_test, average='macro')
print('rec: ' + str(rec)) print('rec: ' + str(rec))
recall_scores.append(rec) recall_scores.append(rec)
prec = precision_score(y[test], predictions_test, average=None) prec = precision_score(y[test], predictions_test, average='macro')
print('prec: ' + str(prec)) print('prec: ' + str(prec))
print('#') print('#')
precision_scores.append(prec) precision_scores.append(prec)