Text Classification
Scikit-learn
English
sms
spam-detection
smishing
phishing
tf-idf
logistic-regression
explainable-ai
in-browser
Eval Results (legacy)
Instructions to use Battlettt/smishield with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Scikit-learn
How to use Battlettt/smishield with Scikit-learn:
from huggingface_hub import hf_hub_download import joblib model = joblib.load( hf_hub_download("Battlettt/smishield", "sklearn_model.joblib") ) # only load pickle files from sources you trust # read more about it here https://skops.readthedocs.io/en/stable/persistence.html - Notebooks
- Google Colab
- Kaggle
File size: 1,193 Bytes
13748f0 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 | {
"dataset": {
"name": "SMS Spam Collection v.1 (Almeida & Gómez Hidalgo)",
"source": "https://archive.ics.uci.edu/static/public/228/sms+spam+collection.zip",
"messages": 5574,
"ham": 4827,
"spam": 747
},
"split": {
"testSize": 0.2,
"stratified": true,
"seed": 42,
"train": 4459,
"test": 1115,
"testHam": 966,
"testSpam": 149
},
"model": {
"features": "TF-IDF word unigrams + bigrams (sublinear tf, l2 norm)",
"vocabularySize": 3000,
"maxFeatures": 3000,
"minDf": 2,
"classifier": "LogisticRegression (liblinear, class_weight=balanced)",
"C": 10.0,
"cvF1": 0.9624,
"threshold": 0.5,
"sklearnVersion": "1.9.1"
},
"test": {
"positiveClass": "spam",
"accuracy": 0.9901,
"precision": 0.9792,
"recall": 0.9463,
"f1": 0.9625,
"confusionMatrix": {
"labels": [
"ham",
"spam"
],
"rowsAreActual": true,
"matrix": [
[
963,
3
],
[
8,
141
]
],
"trueNegatives": 963,
"falsePositives": 3,
"falseNegatives": 8,
"truePositives": 141
}
}
}
|