PENROG21 commited on
Commit
1509b44
·
verified ·
1 Parent(s): 6b4bb34

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +24 -0
README.md ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language: en
3
+ tags:
4
+ - spam
5
+ - classification
6
+ - nlp
7
+ ---
8
+
9
+ # Spam Classifier
10
+
11
+ This is a simple spam classifier using TF-IDF and Logistic Regression.
12
+
13
+ ## Usage
14
+
15
+ ```python
16
+ from sklearn.pipeline import Pipeline
17
+ import joblib
18
+
19
+ model = joblib.load("spam_model.joblib")
20
+ prediction = model.predict(["You won a free prize!"])
21
+ ## Metrics
22
+
23
+ Accuracy: 0.85
24
+ F1-score: 0.82