Text Classification
Transformers
PyTorch
TensorBoard
English
roberta
Generated from Trainer
text-embeddings-inference
Instructions to use lukxus/TwitterCorona with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use lukxus/TwitterCorona with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="lukxus/TwitterCorona")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("lukxus/TwitterCorona") model = AutoModelForSequenceClassification.from_pretrained("lukxus/TwitterCorona", device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 795 Bytes
772ee10 f24ce7e 0aaf592 7d51722 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | ---
metrics:
- f1
language:
- en
datasets:
- argilla/twitter-coronavirus
tags:
- generated_from_trainer
---
The following hyperparameters were used during training:
- learning_rate: 5e-5
- train_batch_size: 16
- eval_batch_size: 16
- seed: 42
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
- lr_scheduler_type: linear
- num_epochs: 3
- mixed_precision_training: Native AMP
- warmup_ratio: 0.1
- weight_decay=1e-2
### Training results
| Training Loss | Epoch | Validation Loss | F1 | F1 Macro |
|:---------------:|:-----:|:-----------------:|:--------:|:--------:|
| 0.902700 | 1.0 | 0.704850 | 0.740065 | 0.749341 |
| 0.531000 | 2.0 | 0.689495 | 0.777677 | 0.786924 |
| 0.375200 | 3.0 | 0.585254 | 0.809506 | 0.816099 |
|