diff --git a/linearpred.py b/linearpred.py index 8ec04b4..2faae4e 100644 --- a/linearpred.py +++ b/linearpred.py @@ -22,7 +22,7 @@ for line2 in lines: for t in terms2: if(t in vocabulary): expected=expected+(words_count[t]/len(words_count)*(weights[word_to_index[t]])) - if(expected>0.65): + if(expected>0.5): print(1) else: print(0)