Downloads · 30 days
5
9% of all-time downloads
guisalim/distilbert-bias-classifier
distilbert-bias-classifier is a machine learning model from guisalim. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
Safety Sensitiveness Service — Tier 2 Bias Head
Downloads · 30 days
5
9% of all-time downloads
All-time downloads
54
Public
Parameters
67M
268 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors268 MB · 100%
From the Hugging Face model README
Safety Sensitiveness Service — Tier 2 Bias Head
Detects 5 types of bias in short text (search queries, social posts):
| Label | Description |
|---|---|
racial | Racial / ethnic bias |
gender | Gender stereotyping |
religious | Religious discrimination |
age | Ageism |
sexual_orientation | Sexual orientation bias |
| Metric | Score |
|---|---|
| F1 Macro | 0.2678 |
| F1 Micro | 0.6810 |
| ROC-AUC Macro | 0.0000 |
| CrowS-Pairs Accuracy | 0.0000 |
| StereoSet Score | 0.4900 |
from transformers import pipeline
classifier = pipeline("text-classification",
model="guisalim/distilbert-bias-classifier",
top_k=None)
print(classifier("Search query here"))
distilbert-base-uncased