z-dickson commited on
Commit
ec1fefe
1 Parent(s): 3b59cd3
Files changed (3) hide show
  1. README.md +53 -1
  2. config.json +69 -0
  3. tf_model.h5 +3 -0
README.md CHANGED
@@ -1,3 +1,55 @@
1
  ---
2
- license: afl-3.0
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ tags:
3
+ - generated_from_keras_callback
4
+ model-index:
5
+ - name: CAP_coded_US_Congressional_bills
6
+ results: []
7
  ---
8
+
9
+ <!-- This model card has been generated automatically according to the information Keras had access to. You should
10
+ probably proofread and complete it, then remove this comment. -->
11
+
12
+ # CAP_coded_US_Congressional_bills
13
+
14
+ This model was trained from scratch on an unknown dataset.
15
+ It achieves the following results on the evaluation set:
16
+ - Train Loss: 0.0852
17
+ - Train Sparse Categorical Accuracy: 0.9793
18
+ - Validation Loss: 0.6009
19
+ - Validation Sparse Categorical Accuracy: 0.8340
20
+ - Epoch: 2
21
+
22
+ ## Model description
23
+
24
+ More information needed
25
+
26
+ ## Intended uses & limitations
27
+
28
+ More information needed
29
+
30
+ ## Training and evaluation data
31
+
32
+ More information needed
33
+
34
+ ## Training procedure
35
+
36
+ ### Training hyperparameters
37
+
38
+ The following hyperparameters were used during training:
39
+ - optimizer: {'name': 'Adam', 'learning_rate': 5e-05, 'decay': 0.0, 'beta_1': 0.9, 'beta_2': 0.999, 'epsilon': 1e-07, 'amsgrad': False}
40
+ - training_precision: float32
41
+
42
+ ### Training results
43
+
44
+ | Train Loss | Train Sparse Categorical Accuracy | Validation Loss | Validation Sparse Categorical Accuracy | Epoch |
45
+ |:----------:|:---------------------------------:|:---------------:|:--------------------------------------:|:-----:|
46
+ | 0.5269 | 0.8476 | 0.4876 | 0.8540 | 0 |
47
+ | 0.1683 | 0.9545 | 0.5160 | 0.8520 | 1 |
48
+ | 0.0852 | 0.9793 | 0.6009 | 0.8340 | 2 |
49
+
50
+
51
+ ### Framework versions
52
+
53
+ - Transformers 4.19.3
54
+ - TensorFlow 2.8.2
55
+ - Tokenizers 0.12.1
config.json ADDED
@@ -0,0 +1,69 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "/content/drive/MyDrive/NLP_models/US_60K_normalised-bert-cased.t5",
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": "macroeconomics",
14
+ "1": "civil rights",
15
+ "2": "health",
16
+ "3": "agriculture",
17
+ "4": "labor",
18
+ "5": "education",
19
+ "6": "environment",
20
+ "7": "energy",
21
+ "8": "immigration",
22
+ "9": "transportation",
23
+ "10": "law and crime",
24
+ "11": "social welfare",
25
+ "12": "housing",
26
+ "13": "domestic commerce",
27
+ "14": "defense",
28
+ "15": "technology",
29
+ "16": "foreign trade",
30
+ "17": "international affairs",
31
+ "18": "government operations",
32
+ "19": "public lands"
33
+ },
34
+ "initializer_range": 0.02,
35
+ "intermediate_size": 3072,
36
+ "label2id": {
37
+ "LABEL_0": 0,
38
+ "LABEL_1": 1,
39
+ "LABEL_10": 10,
40
+ "LABEL_11": 11,
41
+ "LABEL_12": 12,
42
+ "LABEL_13": 13,
43
+ "LABEL_14": 14,
44
+ "LABEL_15": 15,
45
+ "LABEL_16": 16,
46
+ "LABEL_17": 17,
47
+ "LABEL_18": 18,
48
+ "LABEL_19": 19,
49
+ "LABEL_2": 2,
50
+ "LABEL_3": 3,
51
+ "LABEL_4": 4,
52
+ "LABEL_5": 5,
53
+ "LABEL_6": 6,
54
+ "LABEL_7": 7,
55
+ "LABEL_8": 8,
56
+ "LABEL_9": 9
57
+ },
58
+ "layer_norm_eps": 1e-12,
59
+ "max_position_embeddings": 512,
60
+ "model_type": "bert",
61
+ "num_attention_heads": 12,
62
+ "num_hidden_layers": 12,
63
+ "pad_token_id": 0,
64
+ "position_embedding_type": "absolute",
65
+ "transformers_version": "4.19.3",
66
+ "type_vocab_size": 2,
67
+ "use_cache": true,
68
+ "vocab_size": 28996
69
+ }
tf_model.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fd0b5c2cdfa67749fb52337fe9c91983876b6670aa63395064d800cfd44b3ebf
3
+ size 433590688