From 026265d53d60edaf05961dd005972daa5f1dd75d Mon Sep 17 00:00:00 2001 From: Dominika Grajewska Date: Tue, 21 Apr 2020 07:43:54 +0000 Subject: [PATCH] Zaktualizuj 'linearpred.py' --- linearpred.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)