Skip to content

Commit

Permalink
reran bigrams multi hot vector to confirm that performnce is outrageous
Browse files Browse the repository at this point in the history
  • Loading branch information
gicraveiro committed Feb 5, 2022
1 parent abf383f commit db4dfa3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions 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 # 1
sparse_vector[index] = 1 #freq/len(sent_vector) # 1 DIFFERENT CONFIGURATION POSSIBILITIES # 1
if (i == 0): # TO DO: OPTIMIZE, NO NEED TO CHECK THIS EVERY TURN
matrix_array = [sparse_vector]
else:
Expand Down Expand Up @@ -324,7 +324,7 @@ def create_vectors_list(sents, conversion_dict):
os.makedirs(os.path.dirname(path), exist_ok=True)
with open(path, 'w') as file:
#print("Performance measures - Unigram Dictionary - MLP Word Embeddings\n", file=file)
print("Performance measures - Unigram Dictionary - Adaboost\n", file=file)
print("Performance measures - Bigram Dictionary - Adaboost\n", file=file)
#write_output_stats_file(path, "Dev", dev_labels_primary, predictions, labels)
write_output_stats_file(path, "Test", test_labels_primary, predictions, labels)

Expand Down
2 changes: 1 addition & 1 deletion output/AI Classifier/1labelPredictionsStatsTest.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Performance measures - Unigram Dictionary - Adaboost
Performance measures - Bigram Dictionary - Adaboost

Test set:

Expand Down

0 comments on commit db4dfa3

Please sign in to comment.