Text Classification
Transformers
PyTorch
TensorBoard
deberta-v2
Generated from Trainer
text-embeddings-inference
Instructions to use scales-okn/ontology-complaint with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use scales-okn/ontology-complaint with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="scales-okn/ontology-complaint")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("scales-okn/ontology-complaint") model = AutoModelForSequenceClassification.from_pretrained("scales-okn/ontology-complaint", device_map="auto") - Notebooks
- Google Colab
- Kaggle
ontology-complaint
This model is a fine-tuned version of scales-okn/docket-language-model on the None dataset. It achieves the following results on the evaluation set:
- Loss: 0.0384
- Accuracy: 0.9955
- F1: 0.9944
- Precision: 0.9889
- Recall: 1.0
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: 3e-05
- train_batch_size: 8
- eval_batch_size: 16
- seed: 42
- gradient_accumulation_steps: 2
- total_train_batch_size: 16
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
- lr_scheduler_type: linear
- lr_scheduler_warmup_ratio: 0.06
- num_epochs: 5
Training results
| Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 | Precision | Recall |
|---|---|---|---|---|---|---|---|
| 0.0019 | 1.27 | 100 | 0.0552 | 0.9910 | 0.9889 | 0.9780 | 1.0 |
| 0.0007 | 2.53 | 200 | 0.0714 | 0.9910 | 0.9889 | 0.9780 | 1.0 |
| 0.0002 | 3.8 | 300 | 0.0384 | 0.9955 | 0.9944 | 0.9889 | 1.0 |
Framework versions
- Transformers 4.23.1
- Pytorch 1.13.0+cu117
- Datasets 2.6.1
- Tokenizers 0.13.1
- Downloads last month
- 40