File size: 2,908 Bytes
311b56a
 
 
 
 
 
 
b97c019
 
 
311b56a
 
 
b97c019
 
 
 
 
 
 
 
 
 
 
311b56a
 
 
 
 
 
 
b97c019
311b56a
 
 
 
 
 
b97c019
 
 
 
 
311b56a
b97c019
 
 
311b56a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
b97c019
 
 
 
 
 
d8cd242
b97c019
 
1354db4
b97c019
1354db4
b97c019
1354db4
b97c019
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
311b56a
 
 
 
 
 
 
b97c019
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
---
license: mit
base_model: xlm-roberta-large
tags:
- generated_from_trainer
metrics:
- accuracy
- f1
- recall
- precision
model-index:
- name: XLM_RoBERTa-Clickbait-Detection-new
  results: []
datasets:
- christinacdl/clickbait_detection_dataset
language:
- en
- el
- ru
- ro
- de
- it
- es
pipeline_tag: text-classification
---

<!-- 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. -->

# XLM_RoBERTa-Clickbait-Detection-new

This model is a fine-tuned version of [xlm-roberta-large](https://huggingface.co/xlm-roberta-large) on the christinacdl/clickbait_detection_dataset dataset.
It achieves the following results on the evaluation set:
- Loss: 0.1071
- Micro F1: 0.9834
- Macro F1: 0.9833
- Accuracy: 0.9834

It achieves the following results on the test set:
- Accuracy: 0.9838922630050172
- Micro-F1 Score: 0.9838922630050172
- Macro-F1 Score: 0.9838416247418498
- Matthews Correlation Coefficient: 0.9676867009951606

- Precision of each class: [0.98156425 0.98597897]
- Recall of each class: [0.98431373 0.98351648]
- F1 score of each class: [0.98293706 0.98474619]

## Intended uses & limitations

More information needed


## Training procedure

### Training hyperparameters

The following hyperparameters were used during training:
- learning_rate: 1e-05
- train_batch_size: 16
- eval_batch_size: 16
- seed: 42
- gradient_accumulation_steps: 2
- total_train_batch_size: 32
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
- lr_scheduler_type: linear
- num_epochs: 4
- early stopping patience: 2
- adam epsilon: 1e-8
- gradient_checkpointing: True
- max_grad_norm: 1.0
- seed: 42
- optimizer: adamw_torch_fused
- weight decay: 0.01
- warmup_ratio: 0
- group_by_length: True
- max_seq_length: 512
- save_steps: 1000                
- logging_steps: 500
- evaluation_strategy: epoch
- save_strategy: epoch
- eval_steps: 1000
- save_total_limit: 2


### All results from Training and Evaluation
- "epoch": 4.0,
- "eval_accuracy": 0.9844203855294428,
- "eval_loss": 0.08027808368206024,
- "eval_macro_f1": 0.9843695357857132,
- "eval_micro_f1": 0.9844203855294428,
- "eval_runtime": 124.9733,
- "eval_samples": 3787,
- "eval_samples_per_second": 30.302,
- "eval_steps_per_second": 1.896,
- "predict_accuracy": 0.9838922630050172,
- "predict_loss": 0.07716809958219528,
- "predict_macro_f1": 0.9838416247418498,
- "predict_micro_f1": 0.9838922630050172,
- "predict_runtime": 127.7861,
- "predict_samples": 3787,
- "predict_samples_per_second": 29.635,
- "predict_steps_per_second": 1.855,
- "train_loss": 0.057462599486458765,
- "train_runtime": 25253.576,
- "train_samples": 30296,
- "train_samples_per_second": 4.799,
- "train_steps_per_second": 0.15


### Framework versions

- Transformers 4.36.1
- Pytorch 2.1.0+cu121
- Datasets 2.13.1
- Tokenizers 0.15.0