RajuEEE commited on
Commit
fa7bfd5
1 Parent(s): 4e0f537

rajuEEE/ExampleBert

Browse files
README.md ADDED
@@ -0,0 +1,81 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ base_model: bert-base-uncased
4
+ tags:
5
+ - generated_from_trainer
6
+ datasets:
7
+ - sem_eval_2018_task_1
8
+ metrics:
9
+ - f1
10
+ - accuracy
11
+ model-index:
12
+ - name: bert-finetuned-sem_eval-english
13
+ results:
14
+ - task:
15
+ name: Text Classification
16
+ type: text-classification
17
+ dataset:
18
+ name: sem_eval_2018_task_1
19
+ type: sem_eval_2018_task_1
20
+ config: subtask5.english
21
+ split: validation
22
+ args: subtask5.english
23
+ metrics:
24
+ - name: F1
25
+ type: f1
26
+ value: 0.659666128163705
27
+ - name: Accuracy
28
+ type: accuracy
29
+ value: 0.24943566591422123
30
+ ---
31
+
32
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
33
+ should probably proofread and complete it, then remove this comment. -->
34
+
35
+ # bert-finetuned-sem_eval-english
36
+
37
+ This model is a fine-tuned version of [bert-base-uncased](https://huggingface.co/bert-base-uncased) on the sem_eval_2018_task_1 dataset.
38
+ It achieves the following results on the evaluation set:
39
+ - Loss: 0.3267
40
+ - F1: 0.6597
41
+ - Roc Auc: 0.7618
42
+ - Accuracy: 0.2494
43
+
44
+ ## Model description
45
+
46
+ More information needed
47
+
48
+ ## Intended uses & limitations
49
+
50
+ More information needed
51
+
52
+ ## Training and evaluation data
53
+
54
+ More information needed
55
+
56
+ ## Training procedure
57
+
58
+ ### Training hyperparameters
59
+
60
+ The following hyperparameters were used during training:
61
+ - learning_rate: 2e-05
62
+ - train_batch_size: 8
63
+ - eval_batch_size: 8
64
+ - seed: 42
65
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
66
+ - lr_scheduler_type: linear
67
+ - num_epochs: 1
68
+
69
+ ### Training results
70
+
71
+ | Training Loss | Epoch | Step | Validation Loss | F1 | Roc Auc | Accuracy |
72
+ |:-------------:|:-----:|:----:|:---------------:|:------:|:-------:|:--------:|
73
+ | 0.406 | 1.0 | 855 | 0.3267 | 0.6597 | 0.7618 | 0.2494 |
74
+
75
+
76
+ ### Framework versions
77
+
78
+ - Transformers 4.32.0
79
+ - Pytorch 2.0.1+cu118
80
+ - Datasets 2.14.4
81
+ - Tokenizers 0.13.3
config.json ADDED
@@ -0,0 +1,53 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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": "anger",
14
+ "1": "anticipation",
15
+ "2": "disgust",
16
+ "3": "fear",
17
+ "4": "joy",
18
+ "5": "love",
19
+ "6": "optimism",
20
+ "7": "pessimism",
21
+ "8": "sadness",
22
+ "9": "surprise",
23
+ "10": "trust"
24
+ },
25
+ "initializer_range": 0.02,
26
+ "intermediate_size": 3072,
27
+ "label2id": {
28
+ "anger": 0,
29
+ "anticipation": 1,
30
+ "disgust": 2,
31
+ "fear": 3,
32
+ "joy": 4,
33
+ "love": 5,
34
+ "optimism": 6,
35
+ "pessimism": 7,
36
+ "sadness": 8,
37
+ "surprise": 9,
38
+ "trust": 10
39
+ },
40
+ "layer_norm_eps": 1e-12,
41
+ "max_position_embeddings": 512,
42
+ "model_type": "bert",
43
+ "num_attention_heads": 12,
44
+ "num_hidden_layers": 12,
45
+ "pad_token_id": 0,
46
+ "position_embedding_type": "absolute",
47
+ "problem_type": "multi_label_classification",
48
+ "torch_dtype": "float32",
49
+ "transformers_version": "4.32.0",
50
+ "type_vocab_size": 2,
51
+ "use_cache": true,
52
+ "vocab_size": 30522
53
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e2cb87f83c6b09c9e3af58208da32caa26310b656e5bbac65ae086ab10f537d6
3
+ size 438031153
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,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "clean_up_tokenization_spaces": true,
3
+ "cls_token": "[CLS]",
4
+ "do_lower_case": true,
5
+ "mask_token": "[MASK]",
6
+ "model_max_length": 512,
7
+ "pad_token": "[PAD]",
8
+ "sep_token": "[SEP]",
9
+ "strip_accents": null,
10
+ "tokenize_chinese_chars": true,
11
+ "tokenizer_class": "BertTokenizer",
12
+ "unk_token": "[UNK]"
13
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a3d0ead3f485bd52926eec8b6d4628b93ea2f5c527eeb2ae4deff21108042afa
3
+ size 4091
vocab.txt ADDED
The diff for this file is too large to render. See raw diff