sianbrumm/class_classificator_ndc
Browse files- README.md +71 -0
- config.json +172 -0
- model.safetensors +3 -0
- special_tokens_map.json +7 -0
- tokenizer_config.json +58 -0
- training_args.bin +3 -0
- vocab.txt +0 -0
README.md
ADDED
@@ -0,0 +1,71 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: mit
|
3 |
+
base_model: dbmdz/bert-base-german-uncased
|
4 |
+
tags:
|
5 |
+
- generated_from_trainer
|
6 |
+
metrics:
|
7 |
+
- precision
|
8 |
+
- recall
|
9 |
+
- f1
|
10 |
+
- accuracy
|
11 |
+
model-index:
|
12 |
+
- name: class_classificator_results
|
13 |
+
results: []
|
14 |
+
---
|
15 |
+
|
16 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
17 |
+
should probably proofread and complete it, then remove this comment. -->
|
18 |
+
|
19 |
+
# class_classificator_results
|
20 |
+
|
21 |
+
This model is a fine-tuned version of [dbmdz/bert-base-german-uncased](https://huggingface.co/dbmdz/bert-base-german-uncased) on an unknown dataset.
|
22 |
+
It achieves the following results on the evaluation set:
|
23 |
+
- Loss: 1.0045
|
24 |
+
- Precision: 0.9378
|
25 |
+
- Recall: 0.9378
|
26 |
+
- F1: 0.9378
|
27 |
+
- Accuracy: 0.9378
|
28 |
+
|
29 |
+
## Model description
|
30 |
+
|
31 |
+
More information needed
|
32 |
+
|
33 |
+
## Intended uses & limitations
|
34 |
+
|
35 |
+
More information needed
|
36 |
+
|
37 |
+
## Training and evaluation data
|
38 |
+
|
39 |
+
More information needed
|
40 |
+
|
41 |
+
## Training procedure
|
42 |
+
|
43 |
+
### Training hyperparameters
|
44 |
+
|
45 |
+
The following hyperparameters were used during training:
|
46 |
+
- learning_rate: 2e-05
|
47 |
+
- train_batch_size: 16
|
48 |
+
- eval_batch_size: 16
|
49 |
+
- seed: 42
|
50 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
51 |
+
- lr_scheduler_type: linear
|
52 |
+
- lr_scheduler_warmup_steps: 500
|
53 |
+
- num_epochs: 5
|
54 |
+
|
55 |
+
### Training results
|
56 |
+
|
57 |
+
| Training Loss | Epoch | Step | Validation Loss | Precision | Recall | F1 | Accuracy |
|
58 |
+
|:-------------:|:-----:|:-----:|:---------------:|:---------:|:------:|:------:|:--------:|
|
59 |
+
| 0.1623 | 1.0 | 2527 | 0.9948 | 0.9213 | 0.9213 | 0.9213 | 0.9213 |
|
60 |
+
| 0.1321 | 2.0 | 5054 | 0.9662 | 0.9268 | 0.9268 | 0.9268 | 0.9268 |
|
61 |
+
| 0.063 | 3.0 | 7581 | 0.9424 | 0.9330 | 0.9330 | 0.9330 | 0.9330 |
|
62 |
+
| 0.0247 | 4.0 | 10108 | 0.9948 | 0.9351 | 0.9351 | 0.9351 | 0.9351 |
|
63 |
+
| 0.007 | 5.0 | 12635 | 1.0045 | 0.9378 | 0.9378 | 0.9378 | 0.9378 |
|
64 |
+
|
65 |
+
|
66 |
+
### Framework versions
|
67 |
+
|
68 |
+
- Transformers 4.41.2
|
69 |
+
- Pytorch 2.0.1+cu117
|
70 |
+
- Datasets 2.20.0
|
71 |
+
- Tokenizers 0.19.1
|
config.json
ADDED
@@ -0,0 +1,172 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "dbmdz/bert-base-german-uncased",
|
3 |
+
"architectures": [
|
4 |
+
"BertForSequenceClassification"
|
5 |
+
],
|
6 |
+
"attention_probs_dropout_prob": 0.1,
|
7 |
+
"classifier_dropout": null,
|
8 |
+
"hidden_act": "gelu",
|
9 |
+
"hidden_dropout_prob": 0.1,
|
10 |
+
"hidden_size": 768,
|
11 |
+
"id2label": {
|
12 |
+
"0": "50181700",
|
13 |
+
"1": "50240300",
|
14 |
+
"2": "50202200",
|
15 |
+
"3": "50221200",
|
16 |
+
"4": "50102100",
|
17 |
+
"5": "50192300",
|
18 |
+
"6": "50340100",
|
19 |
+
"7": "50390100",
|
20 |
+
"8": "50202300",
|
21 |
+
"9": "50202700",
|
22 |
+
"10": "50131800",
|
23 |
+
"11": "50192900",
|
24 |
+
"12": "50193100",
|
25 |
+
"13": "50181900",
|
26 |
+
"14": "50171800",
|
27 |
+
"15": "50182100",
|
28 |
+
"16": "50191500",
|
29 |
+
"17": "50131700",
|
30 |
+
"18": "50101900",
|
31 |
+
"19": "50182200",
|
32 |
+
"20": "50151500",
|
33 |
+
"21": "50161800",
|
34 |
+
"22": "50240100",
|
35 |
+
"23": "50171500",
|
36 |
+
"24": "50192400",
|
37 |
+
"25": "50192100",
|
38 |
+
"26": "50193400",
|
39 |
+
"27": "50221000",
|
40 |
+
"28": "50161500",
|
41 |
+
"29": "50171700",
|
42 |
+
"30": "50290100",
|
43 |
+
"31": "50182000",
|
44 |
+
"32": "50251000",
|
45 |
+
"33": "50132000",
|
46 |
+
"34": "50171900",
|
47 |
+
"35": "50132100",
|
48 |
+
"36": "50193300",
|
49 |
+
"37": "50131900",
|
50 |
+
"38": "50192500",
|
51 |
+
"39": "50172000",
|
52 |
+
"40": "50250800",
|
53 |
+
"41": "50121900",
|
54 |
+
"42": "50132500",
|
55 |
+
"43": "50193800",
|
56 |
+
"44": "50202400",
|
57 |
+
"45": "50193000",
|
58 |
+
"46": "50102000",
|
59 |
+
"47": "50202600",
|
60 |
+
"48": "50260100",
|
61 |
+
"49": "50122100",
|
62 |
+
"50": "50193200",
|
63 |
+
"51": "50202500",
|
64 |
+
"52": "50122500",
|
65 |
+
"53": "50320100",
|
66 |
+
"54": "50230100",
|
67 |
+
"55": "50161900",
|
68 |
+
"56": "50101800",
|
69 |
+
"57": "50182300",
|
70 |
+
"58": "50201700",
|
71 |
+
"59": "50221300",
|
72 |
+
"60": "50151600",
|
73 |
+
"61": "50132200",
|
74 |
+
"62": "50102200",
|
75 |
+
"63": "50251200",
|
76 |
+
"64": "50310100",
|
77 |
+
"65": "50132600",
|
78 |
+
"66": "50270100",
|
79 |
+
"67": "50121500",
|
80 |
+
"68": "50350400",
|
81 |
+
"69": "50193500",
|
82 |
+
"70": "50240200"
|
83 |
+
},
|
84 |
+
"initializer_range": 0.02,
|
85 |
+
"intermediate_size": 3072,
|
86 |
+
"label2id": {
|
87 |
+
"50101800": 56,
|
88 |
+
"50101900": 18,
|
89 |
+
"50102000": 46,
|
90 |
+
"50102100": 4,
|
91 |
+
"50102200": 62,
|
92 |
+
"50121500": 67,
|
93 |
+
"50121900": 41,
|
94 |
+
"50122100": 49,
|
95 |
+
"50122500": 52,
|
96 |
+
"50131700": 17,
|
97 |
+
"50131800": 10,
|
98 |
+
"50131900": 37,
|
99 |
+
"50132000": 33,
|
100 |
+
"50132100": 35,
|
101 |
+
"50132200": 61,
|
102 |
+
"50132500": 42,
|
103 |
+
"50132600": 65,
|
104 |
+
"50151500": 20,
|
105 |
+
"50151600": 60,
|
106 |
+
"50161500": 28,
|
107 |
+
"50161800": 21,
|
108 |
+
"50161900": 55,
|
109 |
+
"50171500": 23,
|
110 |
+
"50171700": 29,
|
111 |
+
"50171800": 14,
|
112 |
+
"50171900": 34,
|
113 |
+
"50172000": 39,
|
114 |
+
"50181700": 0,
|
115 |
+
"50181900": 13,
|
116 |
+
"50182000": 31,
|
117 |
+
"50182100": 15,
|
118 |
+
"50182200": 19,
|
119 |
+
"50182300": 57,
|
120 |
+
"50191500": 16,
|
121 |
+
"50192100": 25,
|
122 |
+
"50192300": 5,
|
123 |
+
"50192400": 24,
|
124 |
+
"50192500": 38,
|
125 |
+
"50192900": 11,
|
126 |
+
"50193000": 45,
|
127 |
+
"50193100": 12,
|
128 |
+
"50193200": 50,
|
129 |
+
"50193300": 36,
|
130 |
+
"50193400": 26,
|
131 |
+
"50193500": 69,
|
132 |
+
"50193800": 43,
|
133 |
+
"50201700": 58,
|
134 |
+
"50202200": 2,
|
135 |
+
"50202300": 8,
|
136 |
+
"50202400": 44,
|
137 |
+
"50202500": 51,
|
138 |
+
"50202600": 47,
|
139 |
+
"50202700": 9,
|
140 |
+
"50221000": 27,
|
141 |
+
"50221200": 3,
|
142 |
+
"50221300": 59,
|
143 |
+
"50230100": 54,
|
144 |
+
"50240100": 22,
|
145 |
+
"50240200": 70,
|
146 |
+
"50240300": 1,
|
147 |
+
"50250800": 40,
|
148 |
+
"50251000": 32,
|
149 |
+
"50251200": 63,
|
150 |
+
"50260100": 48,
|
151 |
+
"50270100": 66,
|
152 |
+
"50290100": 30,
|
153 |
+
"50310100": 64,
|
154 |
+
"50320100": 53,
|
155 |
+
"50340100": 6,
|
156 |
+
"50350400": 68,
|
157 |
+
"50390100": 7
|
158 |
+
},
|
159 |
+
"layer_norm_eps": 1e-12,
|
160 |
+
"max_position_embeddings": 512,
|
161 |
+
"model_type": "bert",
|
162 |
+
"num_attention_heads": 12,
|
163 |
+
"num_hidden_layers": 12,
|
164 |
+
"pad_token_id": 0,
|
165 |
+
"position_embedding_type": "absolute",
|
166 |
+
"problem_type": "single_label_classification",
|
167 |
+
"torch_dtype": "float32",
|
168 |
+
"transformers_version": "4.41.2",
|
169 |
+
"type_vocab_size": 2,
|
170 |
+
"use_cache": true,
|
171 |
+
"vocab_size": 31102
|
172 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c77ebf4aa9423ae4a37d28296516d64d27a75f71cc02e9d14104672064201deb
|
3 |
+
size 439952652
|
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_config.json
ADDED
@@ -0,0 +1,58 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
+
"101": {
|
12 |
+
"content": "[UNK]",
|
13 |
+
"lstrip": false,
|
14 |
+
"normalized": false,
|
15 |
+
"rstrip": false,
|
16 |
+
"single_word": false,
|
17 |
+
"special": true
|
18 |
+
},
|
19 |
+
"102": {
|
20 |
+
"content": "[CLS]",
|
21 |
+
"lstrip": false,
|
22 |
+
"normalized": false,
|
23 |
+
"rstrip": false,
|
24 |
+
"single_word": false,
|
25 |
+
"special": true
|
26 |
+
},
|
27 |
+
"103": {
|
28 |
+
"content": "[SEP]",
|
29 |
+
"lstrip": false,
|
30 |
+
"normalized": false,
|
31 |
+
"rstrip": false,
|
32 |
+
"single_word": false,
|
33 |
+
"special": true
|
34 |
+
},
|
35 |
+
"104": {
|
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 |
+
"max_len": 512,
|
50 |
+
"model_max_length": 512,
|
51 |
+
"never_split": null,
|
52 |
+
"pad_token": "[PAD]",
|
53 |
+
"sep_token": "[SEP]",
|
54 |
+
"strip_accents": null,
|
55 |
+
"tokenize_chinese_chars": true,
|
56 |
+
"tokenizer_class": "BertTokenizer",
|
57 |
+
"unk_token": "[UNK]"
|
58 |
+
}
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:6b888713ca79cda91207de1ccac2f7e6bd36da0532c9a9481f0a34534d9d3901
|
3 |
+
size 4667
|
vocab.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|