chris32 commited on
Commit
0113a62
1 Parent(s): a912ed0

chris32/bert-house_floor_levels-classification

Browse files
README.md ADDED
@@ -0,0 +1,80 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: dccuchile/distilbert-base-spanish-uncased
3
+ tags:
4
+ - generated_from_trainer
5
+ metrics:
6
+ - accuracy
7
+ - f1
8
+ model-index:
9
+ - name: distilbert-base-spanish-uncased-finetuned-text-intelligence
10
+ results: []
11
+ ---
12
+
13
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
14
+ should probably proofread and complete it, then remove this comment. -->
15
+
16
+ # distilbert-base-spanish-uncased-finetuned-text-intelligence
17
+
18
+ This model is a fine-tuned version of [dccuchile/distilbert-base-spanish-uncased](https://huggingface.co/dccuchile/distilbert-base-spanish-uncased) on the None dataset.
19
+ It achieves the following results on the evaluation set:
20
+ - Loss: 0.6945
21
+ - Accuracy: 0.8834
22
+ - F1: 0.8827
23
+
24
+ ## Model description
25
+
26
+ More information needed
27
+
28
+ ## Intended uses & limitations
29
+
30
+ More information needed
31
+
32
+ ## Training and evaluation data
33
+
34
+ More information needed
35
+
36
+ ## Training procedure
37
+
38
+ ### Training hyperparameters
39
+
40
+ The following hyperparameters were used during training:
41
+ - learning_rate: 1e-05
42
+ - train_batch_size: 8
43
+ - eval_batch_size: 8
44
+ - seed: 42
45
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
46
+ - lr_scheduler_type: linear
47
+ - num_epochs: 20
48
+
49
+ ### Training results
50
+
51
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 |
52
+ |:-------------:|:-----:|:----:|:---------------:|:--------:|:------:|
53
+ | 1.0148 | 1.0 | 235 | 0.7880 | 0.7138 | 0.6551 |
54
+ | 0.6349 | 2.0 | 470 | 0.5415 | 0.8516 | 0.8500 |
55
+ | 0.4709 | 3.0 | 705 | 0.4505 | 0.8587 | 0.8613 |
56
+ | 0.3727 | 4.0 | 940 | 0.4156 | 0.8905 | 0.8900 |
57
+ | 0.3163 | 5.0 | 1175 | 0.4262 | 0.8905 | 0.8910 |
58
+ | 0.2695 | 6.0 | 1410 | 0.5090 | 0.8869 | 0.8874 |
59
+ | 0.2332 | 7.0 | 1645 | 0.5014 | 0.8869 | 0.8865 |
60
+ | 0.1811 | 8.0 | 1880 | 0.5735 | 0.8834 | 0.8827 |
61
+ | 0.1542 | 9.0 | 2115 | 0.5626 | 0.8940 | 0.8932 |
62
+ | 0.1192 | 10.0 | 2350 | 0.5680 | 0.8905 | 0.8900 |
63
+ | 0.124 | 11.0 | 2585 | 0.6291 | 0.8869 | 0.8857 |
64
+ | 0.0988 | 12.0 | 2820 | 0.6424 | 0.8834 | 0.8835 |
65
+ | 0.0933 | 13.0 | 3055 | 0.7085 | 0.8693 | 0.8668 |
66
+ | 0.0813 | 14.0 | 3290 | 0.6560 | 0.8905 | 0.8893 |
67
+ | 0.0599 | 15.0 | 3525 | 0.7175 | 0.8799 | 0.8793 |
68
+ | 0.0632 | 16.0 | 3760 | 0.6862 | 0.8799 | 0.8786 |
69
+ | 0.0489 | 17.0 | 3995 | 0.7064 | 0.8869 | 0.8858 |
70
+ | 0.0449 | 18.0 | 4230 | 0.7046 | 0.8834 | 0.8830 |
71
+ | 0.039 | 19.0 | 4465 | 0.6997 | 0.8799 | 0.8790 |
72
+ | 0.0388 | 20.0 | 4700 | 0.6945 | 0.8834 | 0.8827 |
73
+
74
+
75
+ ### Framework versions
76
+
77
+ - Transformers 4.40.1
78
+ - Pytorch 2.1.0
79
+ - Datasets 2.19.0
80
+ - Tokenizers 0.19.1
config.json ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "dccuchile/distilbert-base-spanish-uncased",
3
+ "activation": "gelu",
4
+ "architectures": [
5
+ "DistilBertForSequenceClassification"
6
+ ],
7
+ "attention_dropout": 0.1,
8
+ "dim": 768,
9
+ "dropout": 0.1,
10
+ "hidden_dim": 3072,
11
+ "id2label": {
12
+ "0": "LABEL_0",
13
+ "1": "LABEL_1",
14
+ "2": "LABEL_2",
15
+ "3": "LABEL_3"
16
+ },
17
+ "initializer_range": 0.02,
18
+ "label2id": {
19
+ "LABEL_0": 0,
20
+ "LABEL_1": 1,
21
+ "LABEL_2": 2,
22
+ "LABEL_3": 3
23
+ },
24
+ "max_position_embeddings": 512,
25
+ "model_type": "distilbert",
26
+ "n_heads": 12,
27
+ "n_layers": 6,
28
+ "pad_token_id": 0,
29
+ "problem_type": "single_label_classification",
30
+ "qa_dropout": 0.1,
31
+ "seq_classif_dropout": 0.2,
32
+ "sinusoidal_pos_embds": true,
33
+ "tie_weights_": true,
34
+ "torch_dtype": "float32",
35
+ "transformers_version": "4.40.1",
36
+ "vocab_size": 31002
37
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:285d06dd53c6d4e3029aabfe66fce2b1faa2af0914d3257a2bc779d12b03e6bc
3
+ size 269313280
special_tokens_map.json ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "cls_token": {
3
+ "content": "[CLS]",
4
+ "lstrip": false,
5
+ "normalized": false,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "mask_token": {
10
+ "content": "[MASK]",
11
+ "lstrip": false,
12
+ "normalized": false,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "pad_token": {
17
+ "content": "[PAD]",
18
+ "lstrip": false,
19
+ "normalized": false,
20
+ "rstrip": false,
21
+ "single_word": false
22
+ },
23
+ "sep_token": {
24
+ "content": "[SEP]",
25
+ "lstrip": false,
26
+ "normalized": false,
27
+ "rstrip": false,
28
+ "single_word": false
29
+ },
30
+ "unk_token": {
31
+ "content": "[UNK]",
32
+ "lstrip": false,
33
+ "normalized": false,
34
+ "rstrip": false,
35
+ "single_word": false
36
+ }
37
+ }
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": "[MASK]",
5
+ "lstrip": false,
6
+ "normalized": false,
7
+ "rstrip": false,
8
+ "single_word": false,
9
+ "special": true
10
+ },
11
+ "1": {
12
+ "content": "[PAD]",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false,
17
+ "special": true
18
+ },
19
+ "3": {
20
+ "content": "[UNK]",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false,
25
+ "special": true
26
+ },
27
+ "4": {
28
+ "content": "[CLS]",
29
+ "lstrip": false,
30
+ "normalized": false,
31
+ "rstrip": false,
32
+ "single_word": false,
33
+ "special": true
34
+ },
35
+ "5": {
36
+ "content": "[SEP]",
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": 512,
50
+ "never_split": null,
51
+ "pad_token": "[PAD]",
52
+ "sep_token": "[SEP]",
53
+ "strip_accents": false,
54
+ "tokenize_chinese_chars": true,
55
+ "tokenizer_class": "DistilBertTokenizer",
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:b8b28c8f3299405e7bf3d72bf6ddeb0677dfdb18faf1e1d98ac4c99304fa93a4
3
+ size 5048
vocab.txt ADDED
The diff for this file is too large to render. See raw diff