ElMad commited on
Commit
3bb3482
·
verified ·
1 Parent(s): 5e2b8c2

stackoverflow_tag_classification/initial_run/bert-base-cased/trusting-cod-535

Browse files
README.md ADDED
@@ -0,0 +1,74 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ license: apache-2.0
4
+ base_model: google-bert/bert-base-cased
5
+ tags:
6
+ - generated_from_trainer
7
+ model-index:
8
+ - name: trusting-cod-535
9
+ results: []
10
+ ---
11
+
12
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
13
+ should probably proofread and complete it, then remove this comment. -->
14
+
15
+ # trusting-cod-535
16
+
17
+ This model is a fine-tuned version of [google-bert/bert-base-cased](https://huggingface.co/google-bert/bert-base-cased) on the None dataset.
18
+ It achieves the following results on the evaluation set:
19
+ - Loss: 0.1752
20
+ - Hamming Loss: 0.0605
21
+ - Zero One Loss: 0.37
22
+ - Jaccard Score: 0.3239
23
+ - Hamming Loss Optimised: 0.0591
24
+ - Hamming Loss Threshold: 0.5959
25
+ - Zero One Loss Optimised: 0.3675
26
+ - Zero One Loss Threshold: 0.4856
27
+ - Jaccard Score Optimised: 0.3093
28
+ - Jaccard Score Threshold: 0.3560
29
+
30
+ ## Model description
31
+
32
+ More information needed
33
+
34
+ ## Intended uses & limitations
35
+
36
+ More information needed
37
+
38
+ ## Training and evaluation data
39
+
40
+ More information needed
41
+
42
+ ## Training procedure
43
+
44
+ ### Training hyperparameters
45
+
46
+ The following hyperparameters were used during training:
47
+ - learning_rate: 4.347554938953255e-05
48
+ - train_batch_size: 32
49
+ - eval_batch_size: 32
50
+ - seed: 2024
51
+ - optimizer: Use OptimizerNames.ADAMW_TORCH with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
52
+ - lr_scheduler_type: linear
53
+ - num_epochs: 8
54
+
55
+ ### Training results
56
+
57
+ | Training Loss | Epoch | Step | Validation Loss | Hamming Loss | Zero One Loss | Jaccard Score | Hamming Loss Optimised | Hamming Loss Threshold | Zero One Loss Optimised | Zero One Loss Threshold | Jaccard Score Optimised | Jaccard Score Threshold |
58
+ |:-------------:|:-----:|:----:|:---------------:|:------------:|:-------------:|:-------------:|:----------------------:|:----------------------:|:-----------------------:|:-----------------------:|:-----------------------:|:-----------------------:|
59
+ | No log | 1.0 | 100 | 0.2265 | 0.0686 | 0.5975 | 0.5674 | 0.0679 | 0.4120 | 0.51 | 0.2533 | 0.4322 | 0.2167 |
60
+ | No log | 2.0 | 200 | 0.1854 | 0.0619 | 0.49 | 0.4391 | 0.0591 | 0.5284 | 0.4788 | 0.4056 | 0.3473 | 0.2884 |
61
+ | No log | 3.0 | 300 | 0.1695 | 0.0594 | 0.4425 | 0.3997 | 0.0592 | 0.5274 | 0.4025 | 0.4051 | 0.3220 | 0.3099 |
62
+ | No log | 4.0 | 400 | 0.1668 | 0.0569 | 0.4012 | 0.3566 | 0.0565 | 0.5047 | 0.3862 | 0.4056 | 0.3123 | 0.3389 |
63
+ | 0.1794 | 5.0 | 500 | 0.1698 | 0.0591 | 0.38 | 0.3274 | 0.0579 | 0.5888 | 0.38 | 0.4808 | 0.3050 | 0.2804 |
64
+ | 0.1794 | 6.0 | 600 | 0.1718 | 0.0615 | 0.38 | 0.3278 | 0.0596 | 0.6098 | 0.375 | 0.4379 | 0.3058 | 0.3497 |
65
+ | 0.1794 | 7.0 | 700 | 0.1739 | 0.0611 | 0.3762 | 0.3301 | 0.0594 | 0.5669 | 0.37 | 0.4056 | 0.3071 | 0.3564 |
66
+ | 0.1794 | 8.0 | 800 | 0.1752 | 0.0605 | 0.37 | 0.3239 | 0.0591 | 0.5959 | 0.3675 | 0.4856 | 0.3093 | 0.3560 |
67
+
68
+
69
+ ### Framework versions
70
+
71
+ - Transformers 4.47.0
72
+ - Pytorch 2.5.1+cu124
73
+ - Datasets 3.1.0
74
+ - Tokenizers 0.21.0
config.json ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "google-bert/bert-base-cased",
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": "matplotlib",
14
+ "1": "dictionary",
15
+ "2": "list",
16
+ "3": "python-3.x",
17
+ "4": "django",
18
+ "5": "python-2.7",
19
+ "6": "pandas",
20
+ "7": "numpy",
21
+ "8": "string",
22
+ "9": "regex"
23
+ },
24
+ "initializer_range": 0.02,
25
+ "intermediate_size": 3072,
26
+ "label2id": {
27
+ "dictionary": 1,
28
+ "django": 4,
29
+ "list": 2,
30
+ "matplotlib": 0,
31
+ "numpy": 7,
32
+ "pandas": 6,
33
+ "python-2.7": 5,
34
+ "python-3.x": 3,
35
+ "regex": 9,
36
+ "string": 8
37
+ },
38
+ "layer_norm_eps": 1e-12,
39
+ "max_position_embeddings": 512,
40
+ "model_type": "bert",
41
+ "num_attention_heads": 12,
42
+ "num_hidden_layers": 12,
43
+ "pad_token_id": 0,
44
+ "position_embedding_type": "absolute",
45
+ "problem_type": "multi_label_classification",
46
+ "torch_dtype": "float32",
47
+ "transformers_version": "4.47.0",
48
+ "type_vocab_size": 2,
49
+ "use_cache": true,
50
+ "vocab_size": 28996
51
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2e20fe197566dd74535b99664646f0e3942e262d0baceffd5bed5f2f09925919
3
+ size 433295376
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,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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": false,
45
+ "cls_token": "[CLS]",
46
+ "do_lower_case": false,
47
+ "extra_special_tokens": {},
48
+ "mask_token": "[MASK]",
49
+ "model_max_length": 512,
50
+ "pad_token": "[PAD]",
51
+ "sep_token": "[SEP]",
52
+ "strip_accents": null,
53
+ "tokenize_chinese_chars": true,
54
+ "tokenizer_class": "BertTokenizer",
55
+ "unk_token": "[UNK]"
56
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5a6a34534b654750adcdd32297cf21c9e0e653ee119ac241268f50ad812105b7
3
+ size 5496
vocab.txt ADDED
The diff for this file is too large to render. See raw diff