crypter70 commited on
Commit
c1f49b8
1 Parent(s): cb03db8

End of training

Browse files
README.md ADDED
@@ -0,0 +1,93 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ base_model: indobenchmark/indobert-base-p1
4
+ tags:
5
+ - generated_from_trainer
6
+ datasets:
7
+ - indonlu
8
+ metrics:
9
+ - accuracy
10
+ model-index:
11
+ - name: IndoBERT-Sentiment-Analysis
12
+ results:
13
+ - task:
14
+ name: Text Classification
15
+ type: text-classification
16
+ dataset:
17
+ name: indonlu
18
+ type: indonlu
19
+ config: smsa
20
+ split: validation
21
+ args: smsa
22
+ metrics:
23
+ - name: Accuracy
24
+ type: accuracy
25
+ value: 0.9452380952380952
26
+ ---
27
+
28
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
29
+ should probably proofread and complete it, then remove this comment. -->
30
+
31
+ # IndoBERT-Sentiment-Analysis
32
+
33
+ This model is a fine-tuned version of [indobenchmark/indobert-base-p1](https://huggingface.co/indobenchmark/indobert-base-p1) on the indonlu dataset.
34
+ It achieves the following results on the evaluation set:
35
+ - Loss: 0.4221
36
+ - Accuracy: 0.9452
37
+ - F1 Score: 0.9451
38
+
39
+ ## Model description
40
+
41
+ More information needed
42
+
43
+ ## Intended uses & limitations
44
+
45
+ More information needed
46
+
47
+ ## Training and evaluation data
48
+
49
+ More information needed
50
+
51
+ ## Training procedure
52
+
53
+ ### Training hyperparameters
54
+
55
+ The following hyperparameters were used during training:
56
+ - learning_rate: 2e-05
57
+ - train_batch_size: 6
58
+ - eval_batch_size: 6
59
+ - seed: 42
60
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
61
+ - lr_scheduler_type: linear
62
+ - num_epochs: 5
63
+
64
+ ### Training results
65
+
66
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 Score |
67
+ |:-------------:|:-----:|:----:|:---------------:|:--------:|:--------:|
68
+ | 0.3499 | 0.27 | 500 | 0.2392 | 0.9310 | 0.9311 |
69
+ | 0.3181 | 0.55 | 1000 | 0.3354 | 0.9175 | 0.9158 |
70
+ | 0.3001 | 0.82 | 1500 | 0.2965 | 0.9238 | 0.9243 |
71
+ | 0.2534 | 1.09 | 2000 | 0.3513 | 0.9222 | 0.9218 |
72
+ | 0.1692 | 1.36 | 2500 | 0.2657 | 0.9405 | 0.9399 |
73
+ | 0.1543 | 1.64 | 3000 | 0.4046 | 0.9198 | 0.9191 |
74
+ | 0.1827 | 1.91 | 3500 | 0.2800 | 0.9317 | 0.9319 |
75
+ | 0.1061 | 2.18 | 4000 | 0.3352 | 0.9389 | 0.9389 |
76
+ | 0.0639 | 2.45 | 4500 | 0.4033 | 0.9373 | 0.9365 |
77
+ | 0.0709 | 2.73 | 5000 | 0.3508 | 0.9365 | 0.9360 |
78
+ | 0.0922 | 3.0 | 5500 | 0.3313 | 0.9397 | 0.9394 |
79
+ | 0.0274 | 3.27 | 6000 | 0.3635 | 0.9444 | 0.9440 |
80
+ | 0.0273 | 3.54 | 6500 | 0.4074 | 0.9389 | 0.9387 |
81
+ | 0.0414 | 3.82 | 7000 | 0.3863 | 0.9405 | 0.9405 |
82
+ | 0.0156 | 4.09 | 7500 | 0.4128 | 0.9413 | 0.9412 |
83
+ | 0.0067 | 4.36 | 8000 | 0.4469 | 0.9397 | 0.9399 |
84
+ | 0.0056 | 4.63 | 8500 | 0.4297 | 0.9444 | 0.9445 |
85
+ | 0.0124 | 4.91 | 9000 | 0.4227 | 0.9452 | 0.9451 |
86
+
87
+
88
+ ### Framework versions
89
+
90
+ - Transformers 4.39.0.dev0
91
+ - Pytorch 2.1.0.dev20230729
92
+ - Datasets 2.14.0
93
+ - Tokenizers 0.15.2
config.json ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "indobenchmark/indobert-base-p1",
3
+ "_num_labels": 5,
4
+ "architectures": [
5
+ "BertForSequenceClassification"
6
+ ],
7
+ "attention_probs_dropout_prob": 0.1,
8
+ "classifier_dropout": null,
9
+ "directionality": "bidi",
10
+ "hidden_act": "gelu",
11
+ "hidden_dropout_prob": 0.1,
12
+ "hidden_size": 768,
13
+ "id2label": {
14
+ "0": "POSITIVE",
15
+ "1": "NEUTRAL",
16
+ "2": "NEGATIVE"
17
+ },
18
+ "initializer_range": 0.02,
19
+ "intermediate_size": 3072,
20
+ "label2id": {
21
+ "NEGATIVE": 2,
22
+ "NEUTRAL": 1,
23
+ "POSITIVE": 0
24
+ },
25
+ "layer_norm_eps": 1e-12,
26
+ "max_position_embeddings": 512,
27
+ "model_type": "bert",
28
+ "num_attention_heads": 12,
29
+ "num_hidden_layers": 12,
30
+ "output_past": true,
31
+ "pad_token_id": 0,
32
+ "pooler_fc_size": 768,
33
+ "pooler_num_attention_heads": 12,
34
+ "pooler_num_fc_layers": 3,
35
+ "pooler_size_per_head": 128,
36
+ "pooler_type": "first_token_transform",
37
+ "position_embedding_type": "absolute",
38
+ "problem_type": "single_label_classification",
39
+ "torch_dtype": "float32",
40
+ "transformers_version": "4.39.0.dev0",
41
+ "type_vocab_size": 2,
42
+ "use_cache": true,
43
+ "vocab_size": 50000
44
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:33465b0d72a94ba459b1dd79a7979e277ec453698ff6f18c1c28c235e59cc0c5
3
+ size 497798148
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,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "1": {
12
+ "content": "[UNK]",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false,
17
+ "special": true
18
+ },
19
+ "2": {
20
+ "content": "[CLS]",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false,
25
+ "special": true
26
+ },
27
+ "3": {
28
+ "content": "[SEP]",
29
+ "lstrip": false,
30
+ "normalized": false,
31
+ "rstrip": false,
32
+ "single_word": false,
33
+ "special": true
34
+ },
35
+ "4": {
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_basic_tokenize": true,
47
+ "do_lower_case": true,
48
+ "mask_token": "[MASK]",
49
+ "model_max_length": 1000000000000000019884624838656,
50
+ "never_split": null,
51
+ "pad_token": "[PAD]",
52
+ "sep_token": "[SEP]",
53
+ "strip_accents": null,
54
+ "tokenize_chinese_chars": true,
55
+ "tokenizer_class": "BertTokenizer",
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:1b0a22c92bc1e0625a87b2a9f499773b4d1aa70dba17dbeae9026c3f794d59d4
3
+ size 4920
vocab.txt ADDED
The diff for this file is too large to render. See raw diff