Commit ·
03d28e1
1
Parent(s): 82396ed
Upload TFRobertaForSequenceClassification
Browse files- README.md +70 -0
- config.json +33 -0
- tf_model.h5 +3 -0
README.md
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
tags:
|
| 4 |
+
- generated_from_keras_callback
|
| 5 |
+
model-index:
|
| 6 |
+
- name: Regression_roberta_1
|
| 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_roberta_1
|
| 14 |
+
|
| 15 |
+
This model is a fine-tuned version of [roberta-base](https://huggingface.co/roberta-base) on an unknown dataset.
|
| 16 |
+
It achieves the following results on the evaluation set:
|
| 17 |
+
- Train Loss: 0.3891
|
| 18 |
+
- Train Mae: 0.3117
|
| 19 |
+
- Train Mse: 0.1477
|
| 20 |
+
- Train R2-score: 0.7113
|
| 21 |
+
- Train Accuracy: 0.7077
|
| 22 |
+
- Validation Loss: 0.3272
|
| 23 |
+
- Validation Mae: 0.3256
|
| 24 |
+
- Validation Mse: 0.1253
|
| 25 |
+
- Validation R2-score: 0.8839
|
| 26 |
+
- Validation Accuracy: 0.9459
|
| 27 |
+
- Epoch: 9
|
| 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 |
+
- 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': 2e-05, 'beta_1': 0.9, 'beta_2': 0.999, 'epsilon': 1e-07, 'amsgrad': False}
|
| 47 |
+
- training_precision: float32
|
| 48 |
+
|
| 49 |
+
### Training results
|
| 50 |
+
|
| 51 |
+
| Train Loss | Train Mae | Train Mse | Train R2-score | Train Accuracy | Validation Loss | Validation Mae | Validation Mse | Validation R2-score | Validation Accuracy | Epoch |
|
| 52 |
+
|:----------:|:---------:|:---------:|:--------------:|:--------------:|:---------------:|:--------------:|:--------------:|:-------------------:|:-------------------:|:-----:|
|
| 53 |
+
| 0.4486 | 0.2939 | 0.1319 | 0.7250 | 0.7769 | 0.4177 | 0.4165 | 0.2221 | 0.8321 | 0.3243 | 0 |
|
| 54 |
+
| 0.3684 | 0.2898 | 0.1342 | 0.5541 | 0.7462 | 0.4019 | 0.4006 | 0.2091 | 0.8409 | 0.3243 | 1 |
|
| 55 |
+
| 0.3423 | 0.2854 | 0.1299 | 0.7355 | 0.7462 | 0.3971 | 0.3958 | 0.2050 | 0.8438 | 0.3243 | 2 |
|
| 56 |
+
| 0.3514 | 0.2890 | 0.1324 | 0.7935 | 0.7538 | 0.3552 | 0.3538 | 0.1640 | 0.8681 | 0.9459 | 3 |
|
| 57 |
+
| 0.3722 | 0.3107 | 0.1525 | 0.5604 | 0.7000 | 0.3448 | 0.3432 | 0.1484 | 0.8750 | 0.9459 | 4 |
|
| 58 |
+
| 0.3996 | 0.2949 | 0.1305 | 0.7869 | 0.8231 | 0.3692 | 0.3677 | 0.1794 | 0.8514 | 0.4865 | 5 |
|
| 59 |
+
| 0.3441 | 0.2895 | 0.1322 | 0.7546 | 0.7538 | 0.3186 | 0.3169 | 0.1159 | 0.8860 | 0.9459 | 6 |
|
| 60 |
+
| 0.3898 | 0.2921 | 0.1255 | 0.5919 | 0.7692 | 0.4107 | 0.4095 | 0.2160 | 0.8366 | 0.3243 | 7 |
|
| 61 |
+
| 0.3552 | 0.2868 | 0.1297 | 0.7113 | 0.7538 | 0.4426 | 0.4415 | 0.2434 | 0.8179 | 0.3243 | 8 |
|
| 62 |
+
| 0.3891 | 0.3117 | 0.1477 | 0.7113 | 0.7077 | 0.3272 | 0.3256 | 0.1253 | 0.8839 | 0.9459 | 9 |
|
| 63 |
+
|
| 64 |
+
|
| 65 |
+
### Framework versions
|
| 66 |
+
|
| 67 |
+
- Transformers 4.27.2
|
| 68 |
+
- TensorFlow 2.11.0
|
| 69 |
+
- Datasets 2.10.1
|
| 70 |
+
- Tokenizers 0.13.2
|
config.json
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_name_or_path": "roberta-base",
|
| 3 |
+
"architectures": [
|
| 4 |
+
"RobertaForSequenceClassification"
|
| 5 |
+
],
|
| 6 |
+
"attention_probs_dropout_prob": 0.1,
|
| 7 |
+
"bos_token_id": 0,
|
| 8 |
+
"classifier_dropout": null,
|
| 9 |
+
"eos_token_id": 2,
|
| 10 |
+
"hidden_act": "gelu",
|
| 11 |
+
"hidden_dropout_prob": 0.1,
|
| 12 |
+
"hidden_size": 768,
|
| 13 |
+
"id2label": {
|
| 14 |
+
"0": "LABEL_0"
|
| 15 |
+
},
|
| 16 |
+
"initializer_range": 0.02,
|
| 17 |
+
"intermediate_size": 3072,
|
| 18 |
+
"label2id": {
|
| 19 |
+
"LABEL_0": 0
|
| 20 |
+
},
|
| 21 |
+
"layer_norm_eps": 1e-05,
|
| 22 |
+
"max_position_embeddings": 514,
|
| 23 |
+
"model_type": "roberta",
|
| 24 |
+
"num_attention_heads": 12,
|
| 25 |
+
"num_hidden_layers": 12,
|
| 26 |
+
"pad_token_id": 1,
|
| 27 |
+
"position_embedding_type": "absolute",
|
| 28 |
+
"problem_type": "regression",
|
| 29 |
+
"transformers_version": "4.27.2",
|
| 30 |
+
"type_vocab_size": 1,
|
| 31 |
+
"use_cache": true,
|
| 32 |
+
"vocab_size": 50265
|
| 33 |
+
}
|
tf_model.h5
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1fc4577c35e54d7af3ff1b2fb1481441c456d64d62773d4e5ec9432a0b1f76d5
|
| 3 |
+
size 498875200
|