From e06d6e6ba5d4d22451725779fe4f3786b252ae7b Mon Sep 17 00:00:00 2001 From: jcollopy-tulane Date: Sat, 27 Apr 2024 19:46:33 -0500 Subject: [PATCH] Adj --- nlp/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nlp/cli.py b/nlp/cli.py index 8c3c0762..5a435cf 100644 --- a/nlp/cli.py +++ b/nlp/cli.py @@ -102,7 +102,7 @@ def process_text(document): X = vec_1.fit_transform(train_df["Comment"]) y = train_df["Result_Bin"] bnb.fit(X,y) - y_pred = nb.predict(val_df["Stemmed"]) + y_pred = bnb.predict(val_df["Stemmed"]) y_val = val_df["Result_Bin"] # Calculate F1 f1 = f1_score(y_val, y_pred)