File size: 381 Bytes
1509b44 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | ---
language: en
tags:
- spam
- classification
- nlp
---
# Spam Classifier
This is a simple spam classifier using TF-IDF and Logistic Regression.
## Usage
```python
from sklearn.pipeline import Pipeline
import joblib
model = joblib.load("spam_model.joblib")
prediction = model.predict(["You won a free prize!"])
## Metrics
Accuracy: 0.85
F1-score: 0.82 |