Svetlana0303
commited on
Commit
·
db9547f
1
Parent(s):
6da1557
Upload TFXLNetForSequenceClassification
Browse files- README.md +73 -0
- config.json +49 -0
- tf_model.h5 +3 -0
README.md
ADDED
@@ -0,0 +1,73 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: mit
|
3 |
+
tags:
|
4 |
+
- generated_from_keras_callback
|
5 |
+
model-index:
|
6 |
+
- name: Regression_xlnet_NOaug_CustomLoss
|
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_xlnet_NOaug_CustomLoss
|
14 |
+
|
15 |
+
This model is a fine-tuned version of [xlnet-base-cased](https://huggingface.co/xlnet-base-cased) on an unknown dataset.
|
16 |
+
It achieves the following results on the evaluation set:
|
17 |
+
- Train Loss: 0.1862
|
18 |
+
- Train Mae: 0.5631
|
19 |
+
- Train Mse: 0.4095
|
20 |
+
- Train R2-score: 0.8268
|
21 |
+
- Validation Loss: 0.1355
|
22 |
+
- Validation Mae: 0.5683
|
23 |
+
- Validation Mse: 0.3643
|
24 |
+
- Validation R2-score: 0.8811
|
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.1966 | 0.5177 | 0.3647 | 0.3590 | 0.1412 | 0.6460 | 0.4895 | 0.8850 | 0 |
|
52 |
+
| 0.1804 | 0.5606 | 0.4181 | 0.8105 | 0.1540 | 0.6614 | 0.5259 | 0.8820 | 1 |
|
53 |
+
| 0.2037 | 0.5676 | 0.4319 | 0.6885 | 0.1399 | 0.6439 | 0.4849 | 0.8849 | 2 |
|
54 |
+
| 0.1833 | 0.5499 | 0.3954 | 0.8256 | 0.1804 | 0.6845 | 0.5879 | 0.8760 | 3 |
|
55 |
+
| 0.1627 | 0.5412 | 0.3866 | 0.8022 | 0.1661 | 0.6729 | 0.5558 | 0.8793 | 4 |
|
56 |
+
| 0.1822 | 0.5677 | 0.4178 | 0.7449 | 0.1327 | 0.6311 | 0.4580 | 0.8861 | 5 |
|
57 |
+
| 0.2117 | 0.5798 | 0.4520 | 0.5186 | 0.1282 | 0.6187 | 0.4345 | 0.8866 | 6 |
|
58 |
+
| 0.1843 | 0.5544 | 0.3998 | 0.5283 | 0.1272 | 0.6142 | 0.4265 | 0.8866 | 7 |
|
59 |
+
| 0.2074 | 0.5906 | 0.4639 | 0.6729 | 0.1269 | 0.6127 | 0.4239 | 0.8865 | 8 |
|
60 |
+
| 0.1756 | 0.5666 | 0.4032 | 0.8054 | 0.1272 | 0.5909 | 0.3908 | 0.8850 | 9 |
|
61 |
+
| 0.1706 | 0.5452 | 0.3948 | 0.7999 | 0.1282 | 0.5862 | 0.3845 | 0.8844 | 10 |
|
62 |
+
| 0.1727 | 0.5499 | 0.3928 | 0.8471 | 0.1453 | 0.6513 | 0.5021 | 0.8840 | 11 |
|
63 |
+
| 0.1688 | 0.5467 | 0.3884 | 0.3339 | 0.1777 | 0.6823 | 0.5817 | 0.8766 | 12 |
|
64 |
+
| 0.1625 | 0.5476 | 0.3918 | 0.5804 | 0.1483 | 0.6541 | 0.5098 | 0.8833 | 13 |
|
65 |
+
| 0.1862 | 0.5631 | 0.4095 | 0.8268 | 0.1355 | 0.5683 | 0.3643 | 0.8811 | 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,49 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "xlnet-base-cased",
|
3 |
+
"architectures": [
|
4 |
+
"XLNetForSequenceClassification"
|
5 |
+
],
|
6 |
+
"attn_type": "bi",
|
7 |
+
"bi_data": false,
|
8 |
+
"bos_token_id": 1,
|
9 |
+
"clamp_len": -1,
|
10 |
+
"d_head": 64,
|
11 |
+
"d_inner": 3072,
|
12 |
+
"d_model": 768,
|
13 |
+
"dropout": 0.1,
|
14 |
+
"end_n_top": 5,
|
15 |
+
"eos_token_id": 2,
|
16 |
+
"ff_activation": "gelu",
|
17 |
+
"id2label": {
|
18 |
+
"0": "LABEL_0"
|
19 |
+
},
|
20 |
+
"initializer_range": 0.02,
|
21 |
+
"label2id": {
|
22 |
+
"LABEL_0": 0
|
23 |
+
},
|
24 |
+
"layer_norm_eps": 1e-12,
|
25 |
+
"mem_len": null,
|
26 |
+
"model_type": "xlnet",
|
27 |
+
"n_head": 12,
|
28 |
+
"n_layer": 12,
|
29 |
+
"pad_token_id": 5,
|
30 |
+
"problem_type": "regression",
|
31 |
+
"reuse_len": null,
|
32 |
+
"same_length": false,
|
33 |
+
"start_n_top": 5,
|
34 |
+
"summary_activation": "tanh",
|
35 |
+
"summary_last_dropout": 0.1,
|
36 |
+
"summary_type": "last",
|
37 |
+
"summary_use_proj": true,
|
38 |
+
"task_specific_params": {
|
39 |
+
"text-generation": {
|
40 |
+
"do_sample": true,
|
41 |
+
"max_length": 250
|
42 |
+
}
|
43 |
+
},
|
44 |
+
"transformers_version": "4.28.1",
|
45 |
+
"untie_r": true,
|
46 |
+
"use_mems_eval": true,
|
47 |
+
"use_mems_train": false,
|
48 |
+
"vocab_size": 32000
|
49 |
+
}
|
tf_model.h5
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f09449d8fb3325723c5c63f44d5e5a38d6c689738062ffa1d8d3b3cb5b5f3a1b
|
3 |
+
size 469429256
|