End of training
Browse files- README.md +83 -0
- config.json +41 -0
- model.safetensors +3 -0
- special_tokens_map.json +7 -0
- tokenizer.json +0 -0
- tokenizer_config.json +55 -0
- training_args.bin +3 -0
- vocab.txt +0 -0
README.md
ADDED
@@ -0,0 +1,83 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: apache-2.0
|
3 |
+
base_model: bert-base-uncased
|
4 |
+
tags:
|
5 |
+
- generated_from_trainer
|
6 |
+
metrics:
|
7 |
+
- f1
|
8 |
+
- accuracy
|
9 |
+
model-index:
|
10 |
+
- name: bert-base-uncased-airlines-news-multi-label
|
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 |
+
# bert-base-uncased-airlines-news-multi-label
|
18 |
+
|
19 |
+
This model is a fine-tuned version of [bert-base-uncased](https://huggingface.co/bert-base-uncased) on the None dataset.
|
20 |
+
It achieves the following results on the evaluation set:
|
21 |
+
- Loss: 0.2807
|
22 |
+
- F1: 0.7124
|
23 |
+
- Roc Auc: 0.8100
|
24 |
+
- Accuracy: 0.6766
|
25 |
+
|
26 |
+
## Model description
|
27 |
+
|
28 |
+
More information needed
|
29 |
+
|
30 |
+
## Intended uses & limitations
|
31 |
+
|
32 |
+
More information needed
|
33 |
+
|
34 |
+
## Training and evaluation data
|
35 |
+
|
36 |
+
More information needed
|
37 |
+
|
38 |
+
## Training procedure
|
39 |
+
|
40 |
+
### Training hyperparameters
|
41 |
+
|
42 |
+
The following hyperparameters were used during training:
|
43 |
+
- learning_rate: 7e-05
|
44 |
+
- train_batch_size: 16
|
45 |
+
- eval_batch_size: 16
|
46 |
+
- seed: 42
|
47 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
48 |
+
- lr_scheduler_type: linear
|
49 |
+
- lr_scheduler_warmup_steps: 150
|
50 |
+
- num_epochs: 20
|
51 |
+
|
52 |
+
### Training results
|
53 |
+
|
54 |
+
| Training Loss | Epoch | Step | Validation Loss | F1 | Roc Auc | Accuracy |
|
55 |
+
|:-------------:|:-----:|:----:|:---------------:|:------:|:-------:|:--------:|
|
56 |
+
| No log | 1.0 | 118 | 0.2992 | 0.2412 | 0.5680 | 0.5234 |
|
57 |
+
| No log | 2.0 | 236 | 0.2628 | 0.5603 | 0.7177 | 0.6255 |
|
58 |
+
| No log | 3.0 | 354 | 0.2785 | 0.5691 | 0.7044 | 0.6426 |
|
59 |
+
| No log | 4.0 | 472 | 0.2674 | 0.6309 | 0.7619 | 0.6340 |
|
60 |
+
| 0.2379 | 5.0 | 590 | 0.2640 | 0.6535 | 0.7768 | 0.6340 |
|
61 |
+
| 0.2379 | 6.0 | 708 | 0.2929 | 0.6596 | 0.7683 | 0.6596 |
|
62 |
+
| 0.2379 | 7.0 | 826 | 0.2778 | 0.7059 | 0.8189 | 0.6681 |
|
63 |
+
| 0.2379 | 8.0 | 944 | 0.2807 | 0.7124 | 0.8100 | 0.6766 |
|
64 |
+
| 0.0507 | 9.0 | 1062 | 0.3381 | 0.6688 | 0.7921 | 0.6511 |
|
65 |
+
| 0.0507 | 10.0 | 1180 | 0.3160 | 0.6919 | 0.8259 | 0.6468 |
|
66 |
+
| 0.0507 | 11.0 | 1298 | 0.3206 | 0.7063 | 0.8045 | 0.6936 |
|
67 |
+
| 0.0507 | 12.0 | 1416 | 0.3273 | 0.6943 | 0.8060 | 0.6766 |
|
68 |
+
| 0.0115 | 13.0 | 1534 | 0.3408 | 0.6794 | 0.7986 | 0.6638 |
|
69 |
+
| 0.0115 | 14.0 | 1652 | 0.3488 | 0.6817 | 0.7971 | 0.6681 |
|
70 |
+
| 0.0115 | 15.0 | 1770 | 0.3469 | 0.6962 | 0.8085 | 0.6766 |
|
71 |
+
| 0.0115 | 16.0 | 1888 | 0.3517 | 0.6795 | 0.7966 | 0.6596 |
|
72 |
+
| 0.0045 | 17.0 | 2006 | 0.3537 | 0.6814 | 0.8011 | 0.6596 |
|
73 |
+
| 0.0045 | 18.0 | 2124 | 0.3566 | 0.6857 | 0.8021 | 0.6638 |
|
74 |
+
| 0.0045 | 19.0 | 2242 | 0.3587 | 0.6795 | 0.7966 | 0.6596 |
|
75 |
+
| 0.0045 | 20.0 | 2360 | 0.3596 | 0.6795 | 0.7966 | 0.6596 |
|
76 |
+
|
77 |
+
|
78 |
+
### Framework versions
|
79 |
+
|
80 |
+
- Transformers 4.41.1
|
81 |
+
- Pytorch 2.3.0+cu121
|
82 |
+
- Datasets 2.19.1
|
83 |
+
- Tokenizers 0.19.1
|
config.json
ADDED
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "bert-base-uncased",
|
3 |
+
"architectures": [
|
4 |
+
"BertForSequenceClassification"
|
5 |
+
],
|
6 |
+
"attention_probs_dropout_prob": 0.1,
|
7 |
+
"classifier_dropout": null,
|
8 |
+
"gradient_checkpointing": false,
|
9 |
+
"hidden_act": "gelu",
|
10 |
+
"hidden_dropout_prob": 0.1,
|
11 |
+
"hidden_size": 768,
|
12 |
+
"id2label": {
|
13 |
+
"0": "capacity expansion",
|
14 |
+
"1": "market expansion",
|
15 |
+
"2": "merger & acquisition and finance investments",
|
16 |
+
"3": "outsourcing and alliance",
|
17 |
+
"4": "product introductions and improvements"
|
18 |
+
},
|
19 |
+
"initializer_range": 0.02,
|
20 |
+
"intermediate_size": 3072,
|
21 |
+
"label2id": {
|
22 |
+
"capacity expansion": 0,
|
23 |
+
"market expansion": 1,
|
24 |
+
"merger & acquisition and finance investments": 2,
|
25 |
+
"outsourcing and alliance": 3,
|
26 |
+
"product introductions and improvements": 4
|
27 |
+
},
|
28 |
+
"layer_norm_eps": 1e-12,
|
29 |
+
"max_position_embeddings": 512,
|
30 |
+
"model_type": "bert",
|
31 |
+
"num_attention_heads": 12,
|
32 |
+
"num_hidden_layers": 12,
|
33 |
+
"pad_token_id": 0,
|
34 |
+
"position_embedding_type": "absolute",
|
35 |
+
"problem_type": "multi_label_classification",
|
36 |
+
"torch_dtype": "float32",
|
37 |
+
"transformers_version": "4.41.1",
|
38 |
+
"type_vocab_size": 2,
|
39 |
+
"use_cache": true,
|
40 |
+
"vocab_size": 30522
|
41 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:bfe43e3cfbc7fec1ef24910f87e1afcf3053c31af1f09be5d313dabbd613bf04
|
3 |
+
size 437967876
|
special_tokens_map.json
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"cls_token": "[CLS]",
|
3 |
+
"mask_token": "[MASK]",
|
4 |
+
"pad_token": "[PAD]",
|
5 |
+
"sep_token": "[SEP]",
|
6 |
+
"unk_token": "[UNK]"
|
7 |
+
}
|
tokenizer.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
tokenizer_config.json
ADDED
@@ -0,0 +1,55 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"added_tokens_decoder": {
|
3 |
+
"0": {
|
4 |
+
"content": "[PAD]",
|
5 |
+
"lstrip": false,
|
6 |
+
"normalized": false,
|
7 |
+
"rstrip": false,
|
8 |
+
"single_word": false,
|
9 |
+
"special": true
|
10 |
+
},
|
11 |
+
"100": {
|
12 |
+
"content": "[UNK]",
|
13 |
+
"lstrip": false,
|
14 |
+
"normalized": false,
|
15 |
+
"rstrip": false,
|
16 |
+
"single_word": false,
|
17 |
+
"special": true
|
18 |
+
},
|
19 |
+
"101": {
|
20 |
+
"content": "[CLS]",
|
21 |
+
"lstrip": false,
|
22 |
+
"normalized": false,
|
23 |
+
"rstrip": false,
|
24 |
+
"single_word": false,
|
25 |
+
"special": true
|
26 |
+
},
|
27 |
+
"102": {
|
28 |
+
"content": "[SEP]",
|
29 |
+
"lstrip": false,
|
30 |
+
"normalized": false,
|
31 |
+
"rstrip": false,
|
32 |
+
"single_word": false,
|
33 |
+
"special": true
|
34 |
+
},
|
35 |
+
"103": {
|
36 |
+
"content": "[MASK]",
|
37 |
+
"lstrip": false,
|
38 |
+
"normalized": false,
|
39 |
+
"rstrip": false,
|
40 |
+
"single_word": false,
|
41 |
+
"special": true
|
42 |
+
}
|
43 |
+
},
|
44 |
+
"clean_up_tokenization_spaces": true,
|
45 |
+
"cls_token": "[CLS]",
|
46 |
+
"do_lower_case": true,
|
47 |
+
"mask_token": "[MASK]",
|
48 |
+
"model_max_length": 512,
|
49 |
+
"pad_token": "[PAD]",
|
50 |
+
"sep_token": "[SEP]",
|
51 |
+
"strip_accents": null,
|
52 |
+
"tokenize_chinese_chars": true,
|
53 |
+
"tokenizer_class": "BertTokenizer",
|
54 |
+
"unk_token": "[UNK]"
|
55 |
+
}
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:cc4b6d2bcfc0335812432fb72687b2b3367bb416b8c16873c8a7d3525d835c6c
|
3 |
+
size 5176
|
vocab.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|