odegiber/hate_speech18
Updated • 2.48k • 17
How to use joseph10/berttiny-hate_speech18-nonpretrained with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="joseph10/berttiny-hate_speech18-nonpretrained") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("joseph10/berttiny-hate_speech18-nonpretrained")
model = AutoModelForSequenceClassification.from_pretrained("joseph10/berttiny-hate_speech18-nonpretrained")This model is a fine-tuned version of google/bert_uncased_L-2_H-128_A-2 on the hate_speech18 dataset. It achieves the following results on the evaluation set:
More information needed
More information needed
More information needed
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|---|---|---|---|---|
| 0.5429 | 1.0 | 60 | 0.4818 | 0.8556 |
| 0.4701 | 2.0 | 120 | 0.4711 | 0.8556 |
| 0.4623 | 3.0 | 180 | 0.4687 | 0.8583 |
| 0.4571 | 4.0 | 240 | 0.4645 | 0.8615 |
| 0.4532 | 5.0 | 300 | 0.4639 | 0.8638 |
| 0.4501 | 6.0 | 360 | 0.4656 | 0.8620 |
| 0.4494 | 7.0 | 420 | 0.4631 | 0.8643 |
Base model
google/bert_uncased_L-2_H-128_A-2