|
|
@ -68,6 +68,8 @@ class NaiveBayes_Interactive: |
|
|
|
print('rec: ' + str(rec)) |
|
|
|
recall_scores.append(rec) |
|
|
|
##DORIS: PRECISION MISST DU AUCH MIT DEN TEST SCORES!!! |
|
|
|
## DU hast in der Zeile untendrunter y[train] und predicitons_train verwendet, du brauchst aber y[test] etc., |
|
|
|
## da precision ja nur ein anderes maß als recall ist, es muss aber genauso mit den testwerten berechnet werden |
|
|
|
prec = precision_score(y[train], predictions_train) |
|
|
|
print('prec: ' + str(prec)) |
|
|
|
print('#') |
|
|
|