z-dickson commited on
Commit
4fbef06
1 Parent(s): 20fa6d3
Files changed (3) hide show
  1. README.md +12 -15
  2. config.json +1 -1
  3. tf_model.h5 +1 -1
README.md CHANGED
@@ -6,20 +6,18 @@ model-index:
6
  results: []
7
  ---
8
 
9
-
 
10
 
11
  # US_politicians_covid_skepticism
12
 
13
- This model is a fine-tuned version of [vinai/bertweet-covid19-base-uncased](https://huggingface.co/vinai/bertweet-covid19-base-uncased) on a dataset of 20,000 handcoded tweets about COVID-19 policies sent by US legislators. The model is trained to identify tweets that are either in support of covid policies (masks, social distancing, lockdowns, vaccine mandates) or are opposed to such policies. Before training the model, all URLs and @Usernames were removed from the tweets. Accuracy is very high (probably) because US legislators tweet a lot of the same messages and retweet each other often. The model is uncased.
14
-
15
-
16
-
17
  It achieves the following results on the evaluation set:
18
- - Train Loss: 0.0141
19
- - Train Sparse Categorical Accuracy: 0.9968
20
- - Validation Loss: 0.0115
21
- - Validation Sparse Categorical Accuracy: 0.9970
22
- - Epoch: 2
23
 
24
  ## Model description
25
 
@@ -45,14 +43,13 @@ The following hyperparameters were used during training:
45
 
46
  | Train Loss | Train Sparse Categorical Accuracy | Validation Loss | Validation Sparse Categorical Accuracy | Epoch |
47
  |:----------:|:---------------------------------:|:---------------:|:--------------------------------------:|:-----:|
48
- | 0.1240 | 0.9721 | 0.0206 | 0.9957 | 0 |
49
- | 0.0194 | 0.9957 | 0.0117 | 0.9972 | 1 |
50
- | 0.0141 | 0.9968 | 0.0115 | 0.9970 | 2 |
51
 
52
 
53
  ### Framework versions
54
 
55
- - Transformers 4.20.1
56
  - TensorFlow 2.8.2
57
- - Datasets 2.3.2
58
  - Tokenizers 0.12.1
 
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
  # US_politicians_covid_skepticism
13
 
14
+ This model is a fine-tuned version of [vinai/bertweet-covid19-base-uncased](https://huggingface.co/vinai/bertweet-covid19-base-uncased) on an unknown dataset.
 
 
 
15
  It achieves the following results on the evaluation set:
16
+ - Train Loss: 0.1007
17
+ - Train Sparse Categorical Accuracy: 0.9591
18
+ - Validation Loss: 0.0913
19
+ - Validation Sparse Categorical Accuracy: 0.9627
20
+ - Epoch: 1
21
 
22
  ## Model description
23
 
 
43
 
44
  | Train Loss | Train Sparse Categorical Accuracy | Validation Loss | Validation Sparse Categorical Accuracy | Epoch |
45
  |:----------:|:---------------------------------:|:---------------:|:--------------------------------------:|:-----:|
46
+ | 0.1822 | 0.9345 | 0.1021 | 0.9584 | 0 |
47
+ | 0.1007 | 0.9591 | 0.0913 | 0.9627 | 1 |
 
48
 
49
 
50
  ### Framework versions
51
 
52
+ - Transformers 4.21.0
53
  - TensorFlow 2.8.2
54
+ - Datasets 2.4.0
55
  - Tokenizers 0.12.1
config.json CHANGED
@@ -21,7 +21,7 @@
21
  "pad_token_id": 1,
22
  "position_embedding_type": "absolute",
23
  "tokenizer_class": "BertweetTokenizer",
24
- "transformers_version": "4.20.1",
25
  "type_vocab_size": 1,
26
  "use_cache": true,
27
  "vocab_size": 64001
 
21
  "pad_token_id": 1,
22
  "position_embedding_type": "absolute",
23
  "tokenizer_class": "BertweetTokenizer",
24
+ "transformers_version": "4.21.0",
25
  "type_vocab_size": 1,
26
  "use_cache": true,
27
  "vocab_size": 64001
tf_model.h5 CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:7ed7dba631fa926f4aae5f64903d510b3492ffa845e4ea5f9f0d1950a81798ea
3
  size 539895680
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:62f52b9a863b7644bee9f7c1050edb86dba1f9fe97b7ce4d8da9766f57f6f753
3
  size 539895680