
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
should probably proofread and complete it, then remove this comment. -->

# roberta-base-finetuned-toxic-comment-detection-ws23

This model is a fine-tuned version of [roberta-base](https://huggingface.co/roberta-base) on an unknown dataset.
It achieves the following results on the evaluation set:
- Loss: 0.3067
- Accuracy: 0.955
- Precision: 0.8333
- Recall: 0.7143
- F1: 0.7692

## 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: 2
- eval_batch_size: 2
- seed: 42
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
- lr_scheduler_type: linear
- lr_scheduler_warmup_ratio: 0.1
- num_epochs: 8

### Training results

| Training Loss | Epoch | Step | Validation Loss | Accuracy | Precision | Recall | F1     |
|:-------------:|:-----:|:----:|:---------------:|:--------:|:---------:|:------:|:------:|
| 0.489         | 1.0   | 400  | 0.2435          | 0.84     | 0.28      | 0.3333 | 0.3043 |
| 0.4157        | 2.0   | 800  | 0.3830          | 0.915    | 0.5667    | 0.8095 | 0.6667 |
| 0.2327        | 3.0   | 1200 | 0.3346          | 0.94     | 0.9091    | 0.4762 | 0.6250 |
| 0.1084        | 4.0   | 1600 | 0.3067          | 0.955    | 0.8333    | 0.7143 | 0.7692 |
| 0.0465        | 5.0   | 2000 | 0.5574          | 0.94     | 1.0       | 0.4286 | 0.6    |
| 0.0183        | 6.0   | 2400 | 0.4728          | 0.945    | 0.8125    | 0.6190 | 0.7027 |
| 0.0084        | 7.0   | 2800 | 0.5979          | 0.93     | 0.8182    | 0.4286 | 0.5625 |


### Framework versions

- Transformers 4.35.2
- Pytorch 2.1.1+cu121
- Tokenizers 0.15.0

{"license": "mit", "tags": ["generated_from_trainer"], "metrics": ["accuracy", "precision", "recall", "f1"], "base_model": "roberta-base", "model-index": [{"name": "roberta-base-finetuned-toxic-comment-detection-ws23", "results": []}]}
transformers safetensors roberta text-classification generated_from_trainer base_model:roberta-base license:mit autotrain_compatible endpoints_compatible region:us