An English sequence classification model, trained on MBAD Dataset to detect bias and fairness in sentences (news articles). This model was built on top of distilbert-base-uncased model and trained for 30 epochs with a batch size of 16, a learning rate of 5e-5, and a maximum sequence length of 512.
Dataset : MBAD Data
Carbon emission 0.319355 Kg
Train Accuracy
Validation Accuracy
Train loss
Test loss
76.97
62.00
0.45
0.96
Usage
The easiest way is to load the inference api from huggingface and second method is through the pipeline object offered by transformers library.
from transformers import AutoTokenizer, TFAutoModelForSequenceClassification
from transformers import pipeline
tokenizer = AutoTokenizer.from_pretrained("d4data/bias-detection-model")
model = TFAutoModelForSequenceClassification.from_pretrained("d4data/bias-detection-model")
classifier = pipeline('text-classification', model=model, tokenizer=tokenizer) # cuda = 0,1 based on gpu availability
classifier("The irony, of course, is that the exhibit that invites people to throw trash at vacuuming Ivanka Trump lookalike reflects every stereotype feminists claim to stand against, oversexualizing Ivanka’s body and ignoring her hard work.")
Author
This model is part of the Research topic "Bias and Fairness in AI" conducted by Deepak John Reji, Shaina Raza. If you use this work (code, model or dataset), please star at:
Runs of d4data bias-detection-model on huggingface.co
4.3K
Total runs
741
24-hour runs
482
3-day runs
-629
7-day runs
-1.4K
30-day runs
More Information About bias-detection-model huggingface.co Model
bias-detection-model huggingface.co
bias-detection-model huggingface.co is an AI model on huggingface.co that provides bias-detection-model's model effect (), which can be used instantly with this d4data bias-detection-model model. huggingface.co supports a free trial of the bias-detection-model model, and also provides paid use of the bias-detection-model. Support call bias-detection-model model through api, including Node.js, Python, http.
bias-detection-model huggingface.co is an online trial and call api platform, which integrates bias-detection-model's modeling effects, including api services, and provides a free online trial of bias-detection-model, you can try bias-detection-model online for free by clicking the link below.
d4data bias-detection-model online free url in huggingface.co:
bias-detection-model is an open source model from GitHub that offers a free installation service, and any user can find bias-detection-model on GitHub to install. At the same time, huggingface.co provides the effect of bias-detection-model install, users can directly use bias-detection-model installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
bias-detection-model install url in huggingface.co: