Svetlana0303
commited on
Commit
•
7c27f91
1
Parent(s):
63a7ce4
Upload TFAlbertForSequenceClassification
Browse files- README.md +73 -0
- config.json +39 -0
- tf_model.h5 +3 -0
README.md
ADDED
@@ -0,0 +1,73 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: apache-2.0
|
3 |
+
tags:
|
4 |
+
- generated_from_keras_callback
|
5 |
+
model-index:
|
6 |
+
- name: Regression_albert_aug_CustomLoss_3
|
7 |
+
results: []
|
8 |
+
---
|
9 |
+
|
10 |
+
<!-- This model card has been generated automatically according to the information Keras had access to. You should
|
11 |
+
probably proofread and complete it, then remove this comment. -->
|
12 |
+
|
13 |
+
# Regression_albert_aug_CustomLoss_3
|
14 |
+
|
15 |
+
This model is a fine-tuned version of [albert-base-v2](https://huggingface.co/albert-base-v2) on an unknown dataset.
|
16 |
+
It achieves the following results on the evaluation set:
|
17 |
+
- Train Loss: 0.2368
|
18 |
+
- Train Mae: 0.5301
|
19 |
+
- Train Mse: 0.4296
|
20 |
+
- Train R2-score: 0.7669
|
21 |
+
- Validation Loss: 0.2410
|
22 |
+
- Validation Mae: 0.5680
|
23 |
+
- Validation Mse: 0.4286
|
24 |
+
- Validation R2-score: 0.6930
|
25 |
+
- Epoch: 14
|
26 |
+
|
27 |
+
## Model description
|
28 |
+
|
29 |
+
More information needed
|
30 |
+
|
31 |
+
## Intended uses & limitations
|
32 |
+
|
33 |
+
More information needed
|
34 |
+
|
35 |
+
## Training and evaluation data
|
36 |
+
|
37 |
+
More information needed
|
38 |
+
|
39 |
+
## Training procedure
|
40 |
+
|
41 |
+
### Training hyperparameters
|
42 |
+
|
43 |
+
The following hyperparameters were used during training:
|
44 |
+
- 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': 1e-04, 'beta_1': 0.9, 'beta_2': 0.999, 'epsilon': 1e-07, 'amsgrad': False}
|
45 |
+
- training_precision: float32
|
46 |
+
|
47 |
+
### Training results
|
48 |
+
|
49 |
+
| Train Loss | Train Mae | Train Mse | Train R2-score | Validation Loss | Validation Mae | Validation Mse | Validation R2-score | Epoch |
|
50 |
+
|:----------:|:---------:|:---------:|:--------------:|:---------------:|:--------------:|:--------------:|:-------------------:|:-----:|
|
51 |
+
| 0.2614 | 0.5480 | 0.4524 | 0.7369 | 0.2408 | 0.5194 | 0.4609 | 0.7578 | 0 |
|
52 |
+
| 0.2442 | 0.5374 | 0.4362 | 0.7109 | 0.2334 | 0.5376 | 0.4391 | 0.7399 | 1 |
|
53 |
+
| 0.2431 | 0.5349 | 0.4356 | 0.7503 | 0.2432 | 0.5234 | 0.4657 | 0.7591 | 2 |
|
54 |
+
| 0.2386 | 0.5250 | 0.4264 | 0.7926 | 0.2348 | 0.5525 | 0.4316 | 0.7203 | 3 |
|
55 |
+
| 0.2409 | 0.5342 | 0.4325 | 0.7166 | 0.2431 | 0.5233 | 0.4656 | 0.7591 | 4 |
|
56 |
+
| 0.2400 | 0.5298 | 0.4310 | 0.7553 | 0.2358 | 0.5250 | 0.4490 | 0.7513 | 5 |
|
57 |
+
| 0.2384 | 0.5274 | 0.4299 | 0.7791 | 0.2341 | 0.5491 | 0.4329 | 0.7253 | 6 |
|
58 |
+
| 0.2413 | 0.5306 | 0.4335 | 0.7593 | 0.2365 | 0.5583 | 0.4299 | 0.7109 | 7 |
|
59 |
+
| 0.2381 | 0.5299 | 0.4298 | 0.7784 | 0.2335 | 0.5452 | 0.4347 | 0.7306 | 8 |
|
60 |
+
| 0.2379 | 0.5280 | 0.4297 | 0.7575 | 0.2335 | 0.5448 | 0.4349 | 0.7312 | 9 |
|
61 |
+
| 0.2374 | 0.5306 | 0.4309 | 0.8098 | 0.2334 | 0.5441 | 0.4352 | 0.7321 | 10 |
|
62 |
+
| 0.2381 | 0.5302 | 0.4303 | 0.7428 | 0.2337 | 0.5466 | 0.4340 | 0.7288 | 11 |
|
63 |
+
| 0.2376 | 0.5323 | 0.4275 | 0.7806 | 0.2333 | 0.5411 | 0.4369 | 0.7358 | 12 |
|
64 |
+
| 0.2339 | 0.5277 | 0.4217 | 0.7986 | 0.2363 | 0.5232 | 0.4506 | 0.7525 | 13 |
|
65 |
+
| 0.2368 | 0.5301 | 0.4296 | 0.7669 | 0.2410 | 0.5680 | 0.4286 | 0.6930 | 14 |
|
66 |
+
|
67 |
+
|
68 |
+
### Framework versions
|
69 |
+
|
70 |
+
- Transformers 4.28.1
|
71 |
+
- TensorFlow 2.12.0
|
72 |
+
- Datasets 2.12.0
|
73 |
+
- Tokenizers 0.13.3
|
config.json
ADDED
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "albert-base-v2",
|
3 |
+
"architectures": [
|
4 |
+
"AlbertForSequenceClassification"
|
5 |
+
],
|
6 |
+
"attention_probs_dropout_prob": 0,
|
7 |
+
"bos_token_id": 2,
|
8 |
+
"classifier_dropout_prob": 0.1,
|
9 |
+
"down_scale_factor": 1,
|
10 |
+
"embedding_size": 128,
|
11 |
+
"eos_token_id": 3,
|
12 |
+
"gap_size": 0,
|
13 |
+
"hidden_act": "gelu_new",
|
14 |
+
"hidden_dropout_prob": 0,
|
15 |
+
"hidden_size": 768,
|
16 |
+
"id2label": {
|
17 |
+
"0": "LABEL_0"
|
18 |
+
},
|
19 |
+
"initializer_range": 0.02,
|
20 |
+
"inner_group_num": 1,
|
21 |
+
"intermediate_size": 3072,
|
22 |
+
"label2id": {
|
23 |
+
"LABEL_0": 0
|
24 |
+
},
|
25 |
+
"layer_norm_eps": 1e-12,
|
26 |
+
"max_position_embeddings": 512,
|
27 |
+
"model_type": "albert",
|
28 |
+
"net_structure_type": 0,
|
29 |
+
"num_attention_heads": 12,
|
30 |
+
"num_hidden_groups": 1,
|
31 |
+
"num_hidden_layers": 12,
|
32 |
+
"num_memory_blocks": 0,
|
33 |
+
"pad_token_id": 0,
|
34 |
+
"position_embedding_type": "absolute",
|
35 |
+
"problem_type": "regression",
|
36 |
+
"transformers_version": "4.28.1",
|
37 |
+
"type_vocab_size": 2,
|
38 |
+
"vocab_size": 30000
|
39 |
+
}
|
tf_model.h5
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:304081f7cd620ad12a55f70ede321177390ebc54883bec0ae36093c6217ed7b3
|
3 |
+
size 46778612
|