Lolimorimorf
commited on
Commit
•
75ce3e1
1
Parent(s):
52c3ced
Upload TFBertForSequenceClassification
Browse files- README.md +67 -0
- config.json +39 -0
- tf_model.h5 +3 -0
README.md
ADDED
@@ -0,0 +1,67 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
tags:
|
3 |
+
- generated_from_keras_callback
|
4 |
+
model-index:
|
5 |
+
- name: ru_propaganda_opposition_model_without_foreign_agent_mask_large_6
|
6 |
+
results: []
|
7 |
+
---
|
8 |
+
|
9 |
+
<!-- This model card has been generated automatically according to the information Keras had access to. You should
|
10 |
+
probably proofread and complete it, then remove this comment. -->
|
11 |
+
|
12 |
+
# ru_propaganda_opposition_model_without_foreign_agent_mask_large_6
|
13 |
+
|
14 |
+
This model is a fine-tuned version of [DeepPavlov/bert-base-bg-cs-pl-ru-cased](https://huggingface.co/DeepPavlov/bert-base-bg-cs-pl-ru-cased) on an unknown dataset.
|
15 |
+
It achieves the following results on the evaluation set:
|
16 |
+
- Train Loss: 0.0003
|
17 |
+
- Validation Loss: 0.2103
|
18 |
+
- Train Accuracy: 0.9606
|
19 |
+
- Epoch: 14
|
20 |
+
|
21 |
+
## Model description
|
22 |
+
|
23 |
+
More information needed
|
24 |
+
|
25 |
+
## Intended uses & limitations
|
26 |
+
|
27 |
+
More information needed
|
28 |
+
|
29 |
+
## Training and evaluation data
|
30 |
+
|
31 |
+
More information needed
|
32 |
+
|
33 |
+
## Training procedure
|
34 |
+
|
35 |
+
### Training hyperparameters
|
36 |
+
|
37 |
+
The following hyperparameters were used during training:
|
38 |
+
- optimizer: {'name': 'Adam', 'weight_decay': None, 'clipnorm': None, 'global_clipnorm': None, 'clipvalue': None, 'use_ema': False, 'ema_momentum': 0.99, 'ema_overwrite_frequency': None, 'jit_compile': True, 'is_legacy_optimizer': False, 'learning_rate': {'class_name': 'PolynomialDecay', 'config': {'initial_learning_rate': 2e-05, 'decay_steps': 6150, 'end_learning_rate': 0.0, 'power': 1.0, 'cycle': False, 'name': None}}, 'beta_1': 0.9, 'beta_2': 0.999, 'epsilon': 1e-08, 'amsgrad': False}
|
39 |
+
- training_precision: float32
|
40 |
+
|
41 |
+
### Training results
|
42 |
+
|
43 |
+
| Train Loss | Validation Loss | Train Accuracy | Epoch |
|
44 |
+
|:----------:|:---------------:|:--------------:|:-----:|
|
45 |
+
| 0.2650 | 0.1440 | 0.9452 | 0 |
|
46 |
+
| 0.0881 | 0.1171 | 0.9529 | 1 |
|
47 |
+
| 0.0377 | 0.1506 | 0.9573 | 2 |
|
48 |
+
| 0.0202 | 0.1724 | 0.9562 | 3 |
|
49 |
+
| 0.0116 | 0.1534 | 0.9617 | 4 |
|
50 |
+
| 0.0064 | 0.2133 | 0.9540 | 5 |
|
51 |
+
| 0.0093 | 0.1844 | 0.9628 | 6 |
|
52 |
+
| 0.0074 | 0.1427 | 0.9606 | 7 |
|
53 |
+
| 0.0018 | 0.1757 | 0.9639 | 8 |
|
54 |
+
| 0.0017 | 0.2006 | 0.9606 | 9 |
|
55 |
+
| 0.0006 | 0.1996 | 0.9595 | 10 |
|
56 |
+
| 0.0007 | 0.2004 | 0.9628 | 11 |
|
57 |
+
| 0.0004 | 0.2052 | 0.9628 | 12 |
|
58 |
+
| 0.0003 | 0.2090 | 0.9606 | 13 |
|
59 |
+
| 0.0003 | 0.2103 | 0.9606 | 14 |
|
60 |
+
|
61 |
+
|
62 |
+
### Framework versions
|
63 |
+
|
64 |
+
- Transformers 4.28.1
|
65 |
+
- TensorFlow 2.12.0
|
66 |
+
- Datasets 2.11.0
|
67 |
+
- Tokenizers 0.13.3
|
config.json
ADDED
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "DeepPavlov/bert-base-bg-cs-pl-ru-cased",
|
3 |
+
"architectures": [
|
4 |
+
"BertForSequenceClassification"
|
5 |
+
],
|
6 |
+
"attention_probs_dropout_prob": 0.1,
|
7 |
+
"classifier_dropout": null,
|
8 |
+
"directionality": "bidi",
|
9 |
+
"hidden_act": "gelu",
|
10 |
+
"hidden_dropout_prob": 0.1,
|
11 |
+
"hidden_size": 768,
|
12 |
+
"id2label": {
|
13 |
+
"0": "OPPOSITION",
|
14 |
+
"1": "PROPAGANDA"
|
15 |
+
},
|
16 |
+
"initializer_range": 0.02,
|
17 |
+
"intermediate_size": 3072,
|
18 |
+
"label2id": {
|
19 |
+
"OPPOSITION": 0,
|
20 |
+
"PROPAGANDA": 1
|
21 |
+
},
|
22 |
+
"layer_norm_eps": 1e-12,
|
23 |
+
"max_position_embeddings": 512,
|
24 |
+
"model_type": "bert",
|
25 |
+
"num_attention_heads": 12,
|
26 |
+
"num_hidden_layers": 12,
|
27 |
+
"output_past": true,
|
28 |
+
"pad_token_id": 0,
|
29 |
+
"pooler_fc_size": 768,
|
30 |
+
"pooler_num_attention_heads": 12,
|
31 |
+
"pooler_num_fc_layers": 3,
|
32 |
+
"pooler_size_per_head": 128,
|
33 |
+
"pooler_type": "first_token_transform",
|
34 |
+
"position_embedding_type": "absolute",
|
35 |
+
"transformers_version": "4.28.1",
|
36 |
+
"type_vocab_size": 2,
|
37 |
+
"use_cache": true,
|
38 |
+
"vocab_size": 119547
|
39 |
+
}
|
tf_model.h5
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:5a0154c1845bf96876a686d9c30189667b89be6840d54b8885d371f940e58495
|
3 |
+
size 711707928
|