Views
No views yet
| Train Accuracy | Validation Accuracy | Train loss | Test loss |
|---|---|---|---|
| 76.97 | 62.00 | 0.45 | 0.96 |
1from transformers import AutoTokenizer, TFAutoModelForSequenceClassification
2from transformers import pipeline
3tokenizer = AutoTokenizer.from_pretrained("d4data/bias-detection-model")
4model = TFAutoModelForSequenceClassification.from_pretrained("d4data/bias-detection-model")
5
6classifier = pipeline('text-classification', model=model, tokenizer=tokenizer) # cuda = 0,1 based on gpu availability
7classifier("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.")Bias & Fairness in AI, (2022), GitHub repository, https://github.com/dreji18/Fairness-in-AI