Fine-tuned RoBERTa-base for binary sentiment analysis
Browse filesFiles changed (3)
- README.mdAdded+68
- model.safetensors+1-1
- tokenizer.json+1-6
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768---library_name: transformerslicense: mitbase_model: roberta-basetags:- generated_from_trainermetrics:- accuracy- f1model-index:- name: sentiment-classifier results: []---
<!-- This model card has been generated automatically according to the information the Trainer had access to. Youshould probably proofread and complete it, then remove this comment. -->
# sentiment-classifier
This model is a fine-tuned version of [roberta-base](https://huggingface.co/roberta-base) on the None dataset.It achieves the following results on the evaluation set:- Loss: 0.1940- Accuracy: 0.9292- F1: 0.9413
## 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: 32- eval_batch_size: 64- seed: 42- optimizer: Use OptimizerNames.ADAMW_TORCH_FUSED 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.1- num_epochs: 4- mixed_precision_training: Native AMP
### Training results
| Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 ||:-------------:|:-----:|:-----:|:---------------:|:--------:|:------:|| 0.1806 | 1.0 | 2886 | 0.1974 | 0.9315 | 0.6721 || 0.1500 | 2.0 | 5772 | 0.1217 | 0.9596 | 0.7779 || 0.1203 | 3.0 | 8658 | 0.2481 | 0.9295 | 0.6704 || 0.0744 | 4.0 | 11544 | 0.2689 | 0.9389 | 0.7006 |
### Framework versions
- Transformers 5.12.0- Pytorch 2.11.0+cu128- Datasets 4.0.0- Tokenizers 0.22.2123version https://git-lfs.github.com/spec/v1oid sha256:e073da2d234483596de0022be0c9339f45568b314e176ed273f6be5a46633e91size 498612824123version https://git-lfs.github.com/spec/v1oid sha256:45202028690f349b762ee7b2f76ad48f2fb8f916ccb3a09b93d1fc6bd37051cbsize 498612824
1234567891011{"version": "1.0","truncation": {"direction": "Right","max_length": 256,"strategy": "LongestFirst","stride": 0},"padding": null,"added_tokens": [{123456{"version": "1.0","truncation": null,"padding": null,"added_tokens": [{
README.mdAdded+68
model.safetensors+1-1
tokenizer.json+1-6