End of training
Browse files- README.md +81 -0
- config.json +104 -0
- merges.txt +0 -0
- model.safetensors +3 -0
- runs/Jun18_13-26-46_iit-p/events.out.tfevents.1718697409.iit-p.45260.0 +3 -0
- special_tokens_map.json +15 -0
- tokenizer.json +0 -0
- tokenizer_config.json +57 -0
- training_args.bin +3 -0
- vocab.json +0 -0
README.md
ADDED
@@ -0,0 +1,81 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: apache-2.0
|
3 |
+
base_model: facebook/bart-base
|
4 |
+
tags:
|
5 |
+
- generated_from_trainer
|
6 |
+
metrics:
|
7 |
+
- f1
|
8 |
+
- accuracy
|
9 |
+
model-index:
|
10 |
+
- name: bart_cause_classifier
|
11 |
+
results: []
|
12 |
+
---
|
13 |
+
|
14 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
15 |
+
should probably proofread and complete it, then remove this comment. -->
|
16 |
+
|
17 |
+
# bart_cause_classifier
|
18 |
+
|
19 |
+
This model is a fine-tuned version of [facebook/bart-base](https://huggingface.co/facebook/bart-base) on the None dataset.
|
20 |
+
It achieves the following results on the evaluation set:
|
21 |
+
- Loss: 0.2310
|
22 |
+
- F1: 0.8139
|
23 |
+
- Accuracy: 0.4022
|
24 |
+
|
25 |
+
## Model description
|
26 |
+
|
27 |
+
More information needed
|
28 |
+
|
29 |
+
## Intended uses & limitations
|
30 |
+
|
31 |
+
More information needed
|
32 |
+
|
33 |
+
## Training and evaluation data
|
34 |
+
|
35 |
+
More information needed
|
36 |
+
|
37 |
+
## Training procedure
|
38 |
+
|
39 |
+
### Training hyperparameters
|
40 |
+
|
41 |
+
The following hyperparameters were used during training:
|
42 |
+
- learning_rate: 2e-05
|
43 |
+
- train_batch_size: 64
|
44 |
+
- eval_batch_size: 64
|
45 |
+
- seed: 42
|
46 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
47 |
+
- lr_scheduler_type: linear
|
48 |
+
- num_epochs: 20
|
49 |
+
|
50 |
+
### Training results
|
51 |
+
|
52 |
+
| Training Loss | Epoch | Step | Validation Loss | F1 | Accuracy |
|
53 |
+
|:-------------:|:-----:|:----:|:---------------:|:------:|:--------:|
|
54 |
+
| No log | 1.0 | 62 | 0.2882 | 0.7066 | 0.0444 |
|
55 |
+
| No log | 2.0 | 124 | 0.2538 | 0.7585 | 0.1643 |
|
56 |
+
| No log | 3.0 | 186 | 0.2338 | 0.7840 | 0.2581 |
|
57 |
+
| No log | 4.0 | 248 | 0.2202 | 0.8000 | 0.2954 |
|
58 |
+
| No log | 5.0 | 310 | 0.2218 | 0.7997 | 0.3306 |
|
59 |
+
| No log | 6.0 | 372 | 0.2146 | 0.8093 | 0.3488 |
|
60 |
+
| No log | 7.0 | 434 | 0.2157 | 0.8073 | 0.3498 |
|
61 |
+
| No log | 8.0 | 496 | 0.2146 | 0.8089 | 0.3629 |
|
62 |
+
| 0.227 | 9.0 | 558 | 0.2223 | 0.8086 | 0.3972 |
|
63 |
+
| 0.227 | 10.0 | 620 | 0.2215 | 0.8088 | 0.3639 |
|
64 |
+
| 0.227 | 11.0 | 682 | 0.2191 | 0.8160 | 0.3982 |
|
65 |
+
| 0.227 | 12.0 | 744 | 0.2227 | 0.8119 | 0.3821 |
|
66 |
+
| 0.227 | 13.0 | 806 | 0.2293 | 0.8070 | 0.3790 |
|
67 |
+
| 0.227 | 14.0 | 868 | 0.2310 | 0.8089 | 0.3780 |
|
68 |
+
| 0.227 | 15.0 | 930 | 0.2267 | 0.8125 | 0.3982 |
|
69 |
+
| 0.227 | 16.0 | 992 | 0.2275 | 0.8116 | 0.3851 |
|
70 |
+
| 0.1282 | 17.0 | 1054 | 0.2289 | 0.8150 | 0.4052 |
|
71 |
+
| 0.1282 | 18.0 | 1116 | 0.2320 | 0.8106 | 0.3891 |
|
72 |
+
| 0.1282 | 19.0 | 1178 | 0.2321 | 0.8114 | 0.3942 |
|
73 |
+
| 0.1282 | 20.0 | 1240 | 0.2310 | 0.8139 | 0.4022 |
|
74 |
+
|
75 |
+
|
76 |
+
### Framework versions
|
77 |
+
|
78 |
+
- Transformers 4.41.1
|
79 |
+
- Pytorch 1.13.1+cu117
|
80 |
+
- Datasets 2.19.1
|
81 |
+
- Tokenizers 0.19.1
|
config.json
ADDED
@@ -0,0 +1,104 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "facebook/bart-base",
|
3 |
+
"activation_dropout": 0.1,
|
4 |
+
"activation_function": "gelu",
|
5 |
+
"add_bias_logits": false,
|
6 |
+
"add_final_layer_norm": false,
|
7 |
+
"architectures": [
|
8 |
+
"BartForSequenceClassification"
|
9 |
+
],
|
10 |
+
"attention_dropout": 0.1,
|
11 |
+
"bos_token_id": 0,
|
12 |
+
"classif_dropout": 0.1,
|
13 |
+
"classifier_dropout": 0.0,
|
14 |
+
"d_model": 768,
|
15 |
+
"decoder_attention_heads": 12,
|
16 |
+
"decoder_ffn_dim": 3072,
|
17 |
+
"decoder_layerdrop": 0.0,
|
18 |
+
"decoder_layers": 6,
|
19 |
+
"decoder_start_token_id": 2,
|
20 |
+
"dropout": 0.1,
|
21 |
+
"early_stopping": true,
|
22 |
+
"encoder_attention_heads": 12,
|
23 |
+
"encoder_ffn_dim": 3072,
|
24 |
+
"encoder_layerdrop": 0.0,
|
25 |
+
"encoder_layers": 6,
|
26 |
+
"eos_token_id": 2,
|
27 |
+
"forced_bos_token_id": 0,
|
28 |
+
"forced_eos_token_id": 2,
|
29 |
+
"gradient_checkpointing": false,
|
30 |
+
"id2label": {
|
31 |
+
"0": "overall_complaint_0",
|
32 |
+
"1": "overall_complaint_1",
|
33 |
+
"2": "Complaint_Accusation",
|
34 |
+
"3": "Complaint_Blame",
|
35 |
+
"4": "Complaint_Disapproval",
|
36 |
+
"5": "Complaint_No explicit reproach",
|
37 |
+
"6": "Complaint_Non-Complaint",
|
38 |
+
"7": "Sentiment_negative",
|
39 |
+
"8": "Sentiment_neutral",
|
40 |
+
"9": "Sentiment_positive",
|
41 |
+
"10": "Emotion_anger",
|
42 |
+
"11": "Emotion_disgust",
|
43 |
+
"12": "Emotion_fear",
|
44 |
+
"13": "Emotion_happiness",
|
45 |
+
"14": "Emotion_other",
|
46 |
+
"15": "Emotion_sadness",
|
47 |
+
"16": "Emotion_surprise"
|
48 |
+
},
|
49 |
+
"init_std": 0.02,
|
50 |
+
"is_encoder_decoder": true,
|
51 |
+
"label2id": {
|
52 |
+
"Complaint_Accusation": 2,
|
53 |
+
"Complaint_Blame": 3,
|
54 |
+
"Complaint_Disapproval": 4,
|
55 |
+
"Complaint_No explicit reproach": 5,
|
56 |
+
"Complaint_Non-Complaint": 6,
|
57 |
+
"Emotion_anger": 10,
|
58 |
+
"Emotion_disgust": 11,
|
59 |
+
"Emotion_fear": 12,
|
60 |
+
"Emotion_happiness": 13,
|
61 |
+
"Emotion_other": 14,
|
62 |
+
"Emotion_sadness": 15,
|
63 |
+
"Emotion_surprise": 16,
|
64 |
+
"Sentiment_negative": 7,
|
65 |
+
"Sentiment_neutral": 8,
|
66 |
+
"Sentiment_positive": 9,
|
67 |
+
"overall_complaint_0": 0,
|
68 |
+
"overall_complaint_1": 1
|
69 |
+
},
|
70 |
+
"max_position_embeddings": 1024,
|
71 |
+
"model_type": "bart",
|
72 |
+
"no_repeat_ngram_size": 3,
|
73 |
+
"normalize_before": false,
|
74 |
+
"normalize_embedding": true,
|
75 |
+
"num_beams": 4,
|
76 |
+
"num_hidden_layers": 6,
|
77 |
+
"pad_token_id": 1,
|
78 |
+
"problem_type": "multi_label_classification",
|
79 |
+
"scale_embedding": false,
|
80 |
+
"task_specific_params": {
|
81 |
+
"summarization": {
|
82 |
+
"length_penalty": 1.0,
|
83 |
+
"max_length": 128,
|
84 |
+
"min_length": 12,
|
85 |
+
"num_beams": 4
|
86 |
+
},
|
87 |
+
"summarization_cnn": {
|
88 |
+
"length_penalty": 2.0,
|
89 |
+
"max_length": 142,
|
90 |
+
"min_length": 56,
|
91 |
+
"num_beams": 4
|
92 |
+
},
|
93 |
+
"summarization_xsum": {
|
94 |
+
"length_penalty": 1.0,
|
95 |
+
"max_length": 62,
|
96 |
+
"min_length": 11,
|
97 |
+
"num_beams": 6
|
98 |
+
}
|
99 |
+
},
|
100 |
+
"torch_dtype": "float32",
|
101 |
+
"transformers_version": "4.41.1",
|
102 |
+
"use_cache": true,
|
103 |
+
"vocab_size": 50265
|
104 |
+
}
|
merges.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d68c2a8473cd42d5176e936204c71cf9660095ac42534ee239e1e7eb5147e01a
|
3 |
+
size 560126532
|
runs/Jun18_13-26-46_iit-p/events.out.tfevents.1718697409.iit-p.45260.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:caa2c23460a4c943e2aaef33de12837b0d1a243750d5779ae2e827674c34c865
|
3 |
+
size 14943
|
special_tokens_map.json
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"bos_token": "<s>",
|
3 |
+
"cls_token": "<s>",
|
4 |
+
"eos_token": "</s>",
|
5 |
+
"mask_token": {
|
6 |
+
"content": "<mask>",
|
7 |
+
"lstrip": true,
|
8 |
+
"normalized": true,
|
9 |
+
"rstrip": false,
|
10 |
+
"single_word": false
|
11 |
+
},
|
12 |
+
"pad_token": "<pad>",
|
13 |
+
"sep_token": "</s>",
|
14 |
+
"unk_token": "<unk>"
|
15 |
+
}
|
tokenizer.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
tokenizer_config.json
ADDED
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"add_prefix_space": false,
|
3 |
+
"added_tokens_decoder": {
|
4 |
+
"0": {
|
5 |
+
"content": "<s>",
|
6 |
+
"lstrip": false,
|
7 |
+
"normalized": true,
|
8 |
+
"rstrip": false,
|
9 |
+
"single_word": false,
|
10 |
+
"special": true
|
11 |
+
},
|
12 |
+
"1": {
|
13 |
+
"content": "<pad>",
|
14 |
+
"lstrip": false,
|
15 |
+
"normalized": true,
|
16 |
+
"rstrip": false,
|
17 |
+
"single_word": false,
|
18 |
+
"special": true
|
19 |
+
},
|
20 |
+
"2": {
|
21 |
+
"content": "</s>",
|
22 |
+
"lstrip": false,
|
23 |
+
"normalized": true,
|
24 |
+
"rstrip": false,
|
25 |
+
"single_word": false,
|
26 |
+
"special": true
|
27 |
+
},
|
28 |
+
"3": {
|
29 |
+
"content": "<unk>",
|
30 |
+
"lstrip": false,
|
31 |
+
"normalized": true,
|
32 |
+
"rstrip": false,
|
33 |
+
"single_word": false,
|
34 |
+
"special": true
|
35 |
+
},
|
36 |
+
"50264": {
|
37 |
+
"content": "<mask>",
|
38 |
+
"lstrip": true,
|
39 |
+
"normalized": true,
|
40 |
+
"rstrip": false,
|
41 |
+
"single_word": false,
|
42 |
+
"special": true
|
43 |
+
}
|
44 |
+
},
|
45 |
+
"bos_token": "<s>",
|
46 |
+
"clean_up_tokenization_spaces": true,
|
47 |
+
"cls_token": "<s>",
|
48 |
+
"eos_token": "</s>",
|
49 |
+
"errors": "replace",
|
50 |
+
"mask_token": "<mask>",
|
51 |
+
"model_max_length": 1000000000000000019884624838656,
|
52 |
+
"pad_token": "<pad>",
|
53 |
+
"sep_token": "</s>",
|
54 |
+
"tokenizer_class": "BartTokenizer",
|
55 |
+
"trim_offsets": true,
|
56 |
+
"unk_token": "<unk>"
|
57 |
+
}
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ada4c88c64225c91ba4ef39a05373cbd0d510b059630799d332e92f2beb78b04
|
3 |
+
size 4667
|
vocab.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|