How to use from the
Use from the
Transformers library
# Use a pipeline as a high-level helper
from transformers import pipeline

pipe = pipeline("text-classification", model="MatteoWood/hatebert-sexism-classifier")
# Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification

tokenizer = AutoTokenizer.from_pretrained("MatteoWood/hatebert-sexism-classifier")
model = AutoModelForSequenceClassification.from_pretrained("MatteoWood/hatebert-sexism-classifier", device_map="auto")
Quick Links

Model Trained Using AutoTrain

  • Problem type: Text Classification

Training parameters

  • lr: 5e-05
  • epochs: 5
  • batch size: 8

Validation Metrics

loss: 0.3898809254169464

f1: 0.7137662337662338

precision: 0.73475935828877

recall: 0.693939393939394

auc: 0.8955589113728649

accuracy: 0.86225

Downloads last month
5
Safetensors
Model size
0.1B params
Tensor type
F32
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support