felixshier commited on
Commit
4b64584
1 Parent(s): 2286135

Upload TFBertForSequenceClassification

Browse files
Files changed (3) hide show
  1. README.md +13 -14
  2. config.json +4 -4
  3. tf_model.h5 +1 -1
README.md CHANGED
@@ -15,10 +15,10 @@ probably proofread and complete it, then remove this comment. -->
15
 
16
  This model is a fine-tuned version of [bert-base-uncased](https://huggingface.co/bert-base-uncased) on an unknown dataset.
17
  It achieves the following results on the evaluation set:
18
- - Train Loss: 0.0038
19
- - Validation Loss: 0.2972
20
- - Train Recall: 0.8810
21
- - Epoch: 6
22
 
23
  ## Model description
24
 
@@ -37,20 +37,19 @@ More information needed
37
  ### Training hyperparameters
38
 
39
  The following hyperparameters were used during training:
40
- - 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': {'module': 'keras.optimizers.schedules', 'class_name': 'PolynomialDecay', 'config': {'initial_learning_rate': 2e-05, 'decay_steps': 1500, 'end_learning_rate': 0.0, 'power': 1.0, 'cycle': False, 'name': None}, 'registered_name': None}, 'beta_1': 0.9, 'beta_2': 0.999, 'epsilon': 1e-08, 'amsgrad': False}
41
  - training_precision: float32
42
 
43
  ### Training results
44
 
45
- | Train Loss | Validation Loss | Train Recall | Epoch |
46
- |:----------:|:---------------:|:------------:|:-----:|
47
- | 0.4802 | 0.2870 | 0.8651 | 0 |
48
- | 0.2311 | 0.2565 | 0.8413 | 1 |
49
- | 0.1166 | 0.2448 | 0.9206 | 2 |
50
- | 0.0348 | 0.2807 | 0.9286 | 3 |
51
- | 0.0123 | 0.3176 | 0.9444 | 4 |
52
- | 0.0210 | 0.2646 | 0.9206 | 5 |
53
- | 0.0038 | 0.2972 | 0.8810 | 6 |
54
 
55
 
56
  ### Framework versions
 
15
 
16
  This model is a fine-tuned version of [bert-base-uncased](https://huggingface.co/bert-base-uncased) on an unknown dataset.
17
  It achieves the following results on the evaluation set:
18
+ - Train Loss: 0.1358
19
+ - Validation Loss: 0.4493
20
+ - Train F1: 0.8396
21
+ - Epoch: 5
22
 
23
  ## Model description
24
 
 
37
  ### Training hyperparameters
38
 
39
  The following hyperparameters were used during training:
40
+ - 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': {'module': 'keras.optimizers.schedules', 'class_name': 'PolynomialDecay', 'config': {'initial_learning_rate': 2e-05, 'decay_steps': 1380, 'end_learning_rate': 0.0, 'power': 1.0, 'cycle': False, 'name': None}, 'registered_name': None}, 'beta_1': 0.9, 'beta_2': 0.999, 'epsilon': 1e-08, 'amsgrad': False}
41
  - training_precision: float32
42
 
43
  ### Training results
44
 
45
+ | Train Loss | Validation Loss | Train F1 | Epoch |
46
+ |:----------:|:---------------:|:--------:|:-----:|
47
+ | 0.5762 | 0.4273 | 0.8516 | 0 |
48
+ | 0.4188 | 0.3844 | 0.8395 | 1 |
49
+ | 0.3173 | 0.3647 | 0.8649 | 2 |
50
+ | 0.2289 | 0.4059 | 0.8413 | 3 |
51
+ | 0.1810 | 0.3937 | 0.8520 | 4 |
52
+ | 0.1358 | 0.4493 | 0.8396 | 5 |
 
53
 
54
 
55
  ### Framework versions
config.json CHANGED
@@ -10,14 +10,14 @@
10
  "hidden_dropout_prob": 0.1,
11
  "hidden_size": 768,
12
  "id2label": {
13
- "0": "0",
14
- "1": "1"
15
  },
16
  "initializer_range": 0.02,
17
  "intermediate_size": 3072,
18
  "label2id": {
19
- "0": 0,
20
- "1": 1
21
  },
22
  "layer_norm_eps": 1e-12,
23
  "max_position_embeddings": 512,
 
10
  "hidden_dropout_prob": 0.1,
11
  "hidden_size": 768,
12
  "id2label": {
13
+ "0": "Other",
14
+ "1": "Africa"
15
  },
16
  "initializer_range": 0.02,
17
  "intermediate_size": 3072,
18
  "label2id": {
19
+ "Africa": 1,
20
+ "Other": 0
21
  },
22
  "layer_norm_eps": 1e-12,
23
  "max_position_embeddings": 512,
tf_model.h5 CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:0dddca07851753356d05135f6e8419ea5a3429676dc500bc03a24211b4f7d37d
3
  size 438223128
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f2f96df1a35925959623bf65f5f4793b6e66af08de4ca003d46b78d6bd411731
3
  size 438223128