Instructions to use ip102803/emotion-classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ip102803/emotion-classifier with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="ip102803/emotion-classifier")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("ip102803/emotion-classifier") model = AutoModelForSequenceClassification.from_pretrained("ip102803/emotion-classifier", device_map="auto") - Notebooks
- Google Colab
- Kaggle
emotion-classifier
This model is a fine-tuned version of bert-base-uncased on an unknown dataset. It achieves the following results on the evaluation set:
- Loss: 0.1612
- Accuracy: 0.9415
- 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: 5e-05
- train_batch_size: 32
- eval_batch_size: 64
- 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
- num_epochs: 4
Training results
| Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 |
|---|---|---|---|---|---|
| 0.2072 | 1.0 | 500 | 0.1875 | 0.9305 | 0.9311 |
| 0.1117 | 2.0 | 1000 | 0.1391 | 0.9375 | 0.9370 |
| 0.0824 | 3.0 | 1500 | 0.1436 | 0.939 | 0.9389 |
| 0.0492 | 4.0 | 2000 | 0.1612 | 0.9415 | 0.9413 |
Framework versions
- Transformers 4.54.1
- Pytorch 2.7.0+cpu
- Datasets 3.5.1
- Tokenizers 0.21.1
- Downloads last month
- 8
Model tree for ip102803/emotion-classifier
Base model
google-bert/bert-base-uncased