Zabihin commited on
Commit
3b1db37
1 Parent(s): 3ba6118

Upload TFBertForSequenceClassification

Browse files
Files changed (3) hide show
  1. README.md +49 -0
  2. config.json +74 -0
  3. tf_model.h5 +3 -0
README.md ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ base_model: bert-base-cased
4
+ tags:
5
+ - generated_from_keras_callback
6
+ model-index:
7
+ - name: Symptom_to_Diagnosis
8
+ results: []
9
+ ---
10
+
11
+ <!-- This model card has been generated automatically according to the information Keras had access to. You should
12
+ probably proofread and complete it, then remove this comment. -->
13
+
14
+ # Symptom_to_Diagnosis
15
+
16
+ This model is a fine-tuned version of [bert-base-cased](https://huggingface.co/bert-base-cased) on an unknown dataset.
17
+ It achieves the following results on the evaluation set:
18
+
19
+
20
+ ## Model description
21
+
22
+ More information needed
23
+
24
+ ## Intended uses & limitations
25
+
26
+ More information needed
27
+
28
+ ## Training and evaluation data
29
+
30
+ More information needed
31
+
32
+ ## Training procedure
33
+
34
+ ### Training hyperparameters
35
+
36
+ The following hyperparameters were used during training:
37
+ - 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': 3e-05, 'beta_1': 0.9, 'beta_2': 0.999, 'epsilon': 1e-07, 'amsgrad': False}
38
+ - training_precision: float32
39
+
40
+ ### Training results
41
+
42
+
43
+
44
+ ### Framework versions
45
+
46
+ - Transformers 4.35.2
47
+ - TensorFlow 2.15.0
48
+ - Datasets 2.15.0
49
+ - Tokenizers 0.15.0
config.json ADDED
@@ -0,0 +1,74 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "bert-base-cased",
3
+ "architectures": [
4
+ "BertForSequenceClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "classifier_dropout": null,
8
+ "gradient_checkpointing": false,
9
+ "hidden_act": "gelu",
10
+ "hidden_dropout_prob": 0.1,
11
+ "hidden_size": 768,
12
+ "id2label": {
13
+ "0": "allergy",
14
+ "1": "arthritis",
15
+ "2": "bronchial asthma",
16
+ "3": "cervical spondylosis",
17
+ "4": "chicken pox",
18
+ "5": "common cold",
19
+ "6": "dengue",
20
+ "7": "diabetes",
21
+ "8": "drug reaction",
22
+ "9": "fungal infection",
23
+ "10": "gastroesophageal reflux disease",
24
+ "11": "hypertension",
25
+ "12": "impetigo",
26
+ "13": "jaundice",
27
+ "14": "malaria",
28
+ "15": "migraine",
29
+ "16": "peptic ulcer disease",
30
+ "17": "pneumonia",
31
+ "18": "psoriasis",
32
+ "19": "typhoid",
33
+ "20": "urinary tract infection",
34
+ "21": "varicose veins"
35
+ },
36
+ "initializer_range": 0.02,
37
+ "intermediate_size": 3072,
38
+ "label2id": {
39
+ "allergy": 0,
40
+ "arthritis": 1,
41
+ "bronchial asthma": 2,
42
+ "cervical spondylosis": 3,
43
+ "chicken pox": 4,
44
+ "common cold": 5,
45
+ "dengue": 6,
46
+ "diabetes": 7,
47
+ "drug reaction": 8,
48
+ "fungal infection": 9,
49
+ "gastroesophageal reflux disease": 10,
50
+ "hypertension": 11,
51
+ "impetigo": 12,
52
+ "jaundice": 13,
53
+ "malaria": 14,
54
+ "migraine": 15,
55
+ "peptic ulcer disease": 16,
56
+ "pneumonia": 17,
57
+ "psoriasis": 18,
58
+ "typhoid": 19,
59
+ "urinary tract infection": 20,
60
+ "varicose veins": 21
61
+ },
62
+ "layer_norm_eps": 1e-12,
63
+ "max_position_embeddings": 512,
64
+ "model_type": "bert",
65
+ "num_attention_heads": 12,
66
+ "num_hidden_layers": 12,
67
+ "output_attentions": true,
68
+ "pad_token_id": 0,
69
+ "position_embedding_type": "absolute",
70
+ "transformers_version": "4.35.2",
71
+ "type_vocab_size": 2,
72
+ "use_cache": true,
73
+ "vocab_size": 28996
74
+ }
tf_model.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:73315602de57db10b2ee1adcaec8d386d4134aaafcdf1a9ac1a8994723037a46
3
+ size 433596776