Instructions to use Ysfxjo/marbert-complaint-sentiment with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Ysfxjo/marbert-complaint-sentiment with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Ysfxjo/marbert-complaint-sentiment")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("Ysfxjo/marbert-complaint-sentiment") model = AutoModelForSequenceClassification.from_pretrained("Ysfxjo/marbert-complaint-sentiment") - Notebooks
- Google Colab
- Kaggle
marbert-complaint-sentiment
This model is a fine-tuned version of UBC-NLP/MARBERTv2 on the None dataset. It achieves the following results on the evaluation set:
- Loss: 1.1046
- Accuracy: 0.7558
- Precision: 0.7603
- Recall: 0.7557
- F1: 0.7566
Model description
More information needed
Intended uses & limitations
More information needed
Training and evaluation data
More information needed
Training procedure
Training hyperparameters
The following hyperparameters were used during training:
- learning_rate: 2e-05
- train_batch_size: 16
- eval_batch_size: 32
- seed: 42
- optimizer: Use OptimizerNames.ADAMW_TORCH with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
- lr_scheduler_type: linear
- lr_scheduler_warmup_steps: 0.06
- num_epochs: 20
- mixed_precision_training: Native AMP
Training results
| Training Loss | Epoch | Step | Validation Loss | Accuracy | Precision | Recall | F1 |
|---|---|---|---|---|---|---|---|
| 0.7025 | 1.0 | 346 | 0.6685 | 0.7265 | 0.7258 | 0.7266 | 0.7236 |
| 0.5949 | 2.0 | 692 | 0.6380 | 0.7410 | 0.7392 | 0.7409 | 0.7394 |
| 0.3961 | 3.0 | 1038 | 0.7748 | 0.7352 | 0.7344 | 0.7351 | 0.7330 |
| 0.2468 | 4.0 | 1384 | 0.9337 | 0.7381 | 0.7546 | 0.7382 | 0.7397 |
| 0.1912 | 5.0 | 1730 | 1.2429 | 0.7467 | 0.7531 | 0.7468 | 0.7483 |
| 0.1168 | 6.0 | 2076 | 1.3285 | 0.7453 | 0.7466 | 0.7453 | 0.7458 |
| 0.0755 | 7.0 | 2422 | 1.7611 | 0.7192 | 0.7201 | 0.7191 | 0.7130 |
Framework versions
- Transformers 5.7.0
- Pytorch 2.4.1+cu124
- Datasets 4.8.5
- Tokenizers 0.22.2
- Downloads last month
- 199
Model tree for Ysfxjo/marbert-complaint-sentiment
Base model
UBC-NLP/MARBERTv2