Improving Black-box Robustness with In-Context Rewriting
Collection
24 items • Updated • 1
How to use Kyle1668/boss-sentiment-24000-bert-base-uncased with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="Kyle1668/boss-sentiment-24000-bert-base-uncased") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("Kyle1668/boss-sentiment-24000-bert-base-uncased")
model = AutoModelForSequenceClassification.from_pretrained("Kyle1668/boss-sentiment-24000-bert-base-uncased")This model is a fine-tuned version of bert-base-uncased on the None 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 | F1 | Acc | Validation Loss |
|---|---|---|---|---|---|
| 0.5326 | 1.0 | 1500 | 0.6849 | 0.8225 | 0.4703 |
| 0.446 | 2.0 | 3000 | 0.7067 | 0.8411 | 0.4367 |
| 0.3243 | 3.0 | 4500 | 0.7751 | 0.9106 | 0.2869 |
| 0.2342 | 4.0 | 6000 | 0.7532 | 0.8868 | 0.4170 |
| 0.1683 | 5.0 | 7500 | 0.7469 | 0.8772 | 0.6099 |
| 0.1235 | 6.0 | 9000 | 0.7394 | 0.8769 | 0.7205 |
Base model
google-bert/bert-base-uncased