Run this model with HF Jobs

Run dravyaaa/phishing-email-detector on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs to fine-tune https://huggingface.co/dravyaaa/phishing-email-detector. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/dravyaaa/phishing-email-detector on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

Phishing Email Detector (DistilRoBERTa)

distilroberta-base fine-tuned to classify an email body as safe or phishing.

Test-set results (1,751 held-out emails)

Model Accuracy F1 (phishing)
TF-IDF + Logistic Regression (baseline) 98.91% 0.9854
This model 98.63% 0.9816

Usage

from transformers import pipeline
clf = pipeline("text-classification", model="dravaya/phishing-email-detector", truncation=True, max_length=256)
clf("Your account has been suspended. Verify your identity at http://secure-login-update.com")

Limitations

The training data mixes Enron corporate mail and mid-2000s spam, so part of what the model learns is the source and era of an email rather than phishing intent. Expect lower accuracy on modern phishing. Inputs are truncated to 256 tokens. Research/learning project, not a production filter.

Downloads last month
26
Safetensors
Model size
82.1M params
Tensor type
F32
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for dravyaaa/phishing-email-detector

Quantized
(28)
this model

Dataset used to train dravyaaa/phishing-email-detector

Space using dravyaaa/phishing-email-detector 1