PDAP/coarse-labeled-urls-headers
Viewer • Updated • 3.22k • 8
How to use PDAP/coarse-url-classifier with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="PDAP/coarse-url-classifier") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("PDAP/coarse-url-classifier")
model = AutoModelForSequenceClassification.from_pretrained("PDAP/coarse-url-classifier")This model is a fine-tuned version of distilbert-base-uncased trained on the dataset PDAP/coarse-labeled-urls-headers. It achieves the following results on the evaluation set:
More information needed
More information needed
This model is trained on urls/html data belonging to 5 coarse grained labels:
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|---|---|---|---|---|
| No log | 1.0 | 364 | 0.9021 | 0.6830 |
| 1.0729 | 2.0 | 728 | 0.6936 | 0.7712 |
| 0.6279 | 3.0 | 1092 | 0.6766 | 0.7745 |
| 0.6279 | 4.0 | 1456 | 0.6633 | 0.7941 |
| 0.4531 | 5.0 | 1820 | 0.6691 | 0.8137 |
| 0.3527 | 6.0 | 2184 | 0.6826 | 0.8039 |
Base model
distilbert/distilbert-base-uncased