Tottin commited on
Commit
3167849
·
1 Parent(s): 443f746

Upload TFBertForSequenceClassification

Browse files
Files changed (3) hide show
  1. README.md +57 -0
  2. config.json +52 -0
  3. tf_model.h5 +3 -0
README.md ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: jicoc22578/autotrain-livedoor_news-722922024
3
+ tags:
4
+ - generated_from_keras_callback
5
+ model-index:
6
+ - name: Megagon-step1_model
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
+ # Megagon-step1_model
14
+
15
+ This model is a fine-tuned version of [jicoc22578/autotrain-livedoor_news-722922024](https://huggingface.co/jicoc22578/autotrain-livedoor_news-722922024) on an unknown dataset.
16
+ It achieves the following results on the evaluation set:
17
+ - Train Loss: 0.0806
18
+ - Train Accuracy: 0.9711
19
+ - Validation Loss: 0.2171
20
+ - Validation Accuracy: 0.9351
21
+ - Epoch: 2
22
+
23
+ ## Model description
24
+
25
+ More information needed
26
+
27
+ ## Intended uses & limitations
28
+
29
+ More information needed
30
+
31
+ ## Training and evaluation data
32
+
33
+ More information needed
34
+
35
+ ## Training procedure
36
+
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': False, 'is_legacy_optimizer': False, 'learning_rate': {'module': 'keras.optimizers.schedules', 'class_name': 'PolynomialDecay', 'config': {'initial_learning_rate': 5e-05, 'decay_steps': 2832, '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-07, 'amsgrad': False}
41
+ - training_precision: float32
42
+
43
+ ### Training results
44
+
45
+ | Train Loss | Train Accuracy | Validation Loss | Validation Accuracy | Epoch |
46
+ |:----------:|:--------------:|:---------------:|:-------------------:|:-----:|
47
+ | 0.3175 | 0.9077 | 0.2711 | 0.9234 | 0 |
48
+ | 0.1671 | 0.9429 | 0.2022 | 0.9444 | 1 |
49
+ | 0.0806 | 0.9711 | 0.2171 | 0.9351 | 2 |
50
+
51
+
52
+ ### Framework versions
53
+
54
+ - Transformers 4.33.1
55
+ - TensorFlow 2.13.0
56
+ - Datasets 2.14.5
57
+ - Tokenizers 0.13.3
config.json ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "jicoc22578/autotrain-livedoor_news-722922024",
3
+ "_num_labels": 9,
4
+ "architectures": [
5
+ "BertForSequenceClassification"
6
+ ],
7
+ "attention_probs_dropout_prob": 0.1,
8
+ "classifier_dropout": null,
9
+ "hidden_act": "gelu",
10
+ "hidden_dropout_prob": 0.1,
11
+ "hidden_size": 768,
12
+ "id2label": {
13
+ "0": "dokujo-tsushin",
14
+ "1": "it-life-hack",
15
+ "2": "kaden-channel",
16
+ "3": "livedoor-homme",
17
+ "4": "movie-enter",
18
+ "5": "peachy",
19
+ "6": "smax",
20
+ "7": "sports-watch",
21
+ "8": "topic-news"
22
+ },
23
+ "initializer_range": 0.02,
24
+ "intermediate_size": 3072,
25
+ "label2id": {
26
+ "dokujo-tsushin": 0,
27
+ "it-life-hack": 1,
28
+ "kaden-channel": 2,
29
+ "livedoor-homme": 3,
30
+ "movie-enter": 4,
31
+ "peachy": 5,
32
+ "smax": 6,
33
+ "sports-watch": 7,
34
+ "topic-news": 8
35
+ },
36
+ "layer_norm_eps": 1e-12,
37
+ "max_length": 128,
38
+ "max_position_embeddings": 512,
39
+ "model_type": "bert",
40
+ "num_attention_heads": 12,
41
+ "num_hidden_layers": 12,
42
+ "pad_token_id": 0,
43
+ "padding": "max_length",
44
+ "position_embedding_type": "absolute",
45
+ "problem_type": "single_label_classification",
46
+ "tokenizer_class": "BertJapaneseTokenizer",
47
+ "torch_dtype": "float32",
48
+ "transformers_version": "4.33.1",
49
+ "type_vocab_size": 2,
50
+ "use_cache": true,
51
+ "vocab_size": 32768
52
+ }
tf_model.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:984bd3ec1f0a95937d578d123a84163de2eeb30e715c9c15873c490d3a3a7bae
3
+ size 445144372