Skip to content

Commit

Permalink
ran bigrams with lr 0.5 and nest 100 multi hot
Browse files Browse the repository at this point in the history
  • Loading branch information
gicraveiro committed Feb 5, 2022
1 parent 26eb63b commit cb5c24b
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion AIclassifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def format_sentVector_to_SparseMatrix(vectors_list, dictionary):
counts = Counter(sent_vector)
for index, freq in counts.items():
if len(counts.items()) > 0:
sparse_vector[index] = freq/len(sent_vector) # 1 DIFFERENT CONFIGURATION POSSIBILITIES
sparse_vector[index] = 1 #freq/len(sent_vector) # DIFFERENT CONFIGURATION POSSIBILITIES
if (i == 0): # TO DO: OPTIMIZE, NO NEED TO CHECK THIS EVERY TURN
matrix_array = [sparse_vector]
else:
Expand Down
Binary file modified output/AI Classifier/1Label_confusion_matrix_NonNorm.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified output/AI Classifier/1Label_confusion_matrix_NormTrue.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 8 additions & 8 deletions output/AI Classifier/1labelPredictionsStatsTest.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ Performance measures - Bigram Dictionary - Adaboost

Test set:

Precision macro: 0.409
Precision Individually: [0.833 0. 0.545 0. 0.667]
Recall macro: 0.305
Recall Individually: [0.357 0. 0.968 0. 0.2 ]
F1 Score micro: 0.552
F1 Score macro: 0.301
F1 Score weighted: 0.473
F1 Score Individually: [0.5 0. 0.698 0. 0.308]
Precision macro: 0.275
Precision Individually: [0.857 0. 0.517 0. 0. ]
Recall macro: 0.279
Recall Individually: [0.429 0. 0.968 0. 0. ]
F1 Score micro: 0.537
F1 Score macro: 0.249
F1 Score weighted: 0.431
F1 Score Individually: [0.571 0. 0.674 0. 0. ]


0 comments on commit cb5c24b

Please sign in to comment.