jalaluddin94 commited on
Commit
116a614
·
verified ·
1 Parent(s): 604daf6

Model save

Browse files
Files changed (4) hide show
  1. README.md +70 -0
  2. config.json +27 -0
  3. model.safetensors +3 -0
  4. training_args.bin +3 -0
README.md ADDED
@@ -0,0 +1,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ base_model: bert-base-uncased
4
+ tags:
5
+ - generated_from_trainer
6
+ metrics:
7
+ - accuracy
8
+ - precision
9
+ - recall
10
+ model-index:
11
+ - name: email_spam_classification_eng
12
+ results: []
13
+ ---
14
+
15
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
16
+ should probably proofread and complete it, then remove this comment. -->
17
+
18
+ # email_spam_classification_eng
19
+
20
+ This model is a fine-tuned version of [bert-base-uncased](https://huggingface.co/bert-base-uncased) on an unknown dataset.
21
+ It achieves the following results on the evaluation set:
22
+ - Loss: 0.1368
23
+ - Accuracy: 0.9880
24
+ - Precision: 0.9880
25
+ - Recall: 0.9880
26
+ - F1 Score: 0.9879
27
+
28
+ ## Model description
29
+
30
+ More information needed
31
+
32
+ ## Intended uses & limitations
33
+
34
+ More information needed
35
+
36
+ ## Training and evaluation data
37
+
38
+ More information needed
39
+
40
+ ## Training procedure
41
+
42
+ ### Training hyperparameters
43
+
44
+ The following hyperparameters were used during training:
45
+ - learning_rate: 3e-05
46
+ - train_batch_size: 8
47
+ - eval_batch_size: 8
48
+ - seed: 42
49
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
50
+ - lr_scheduler_type: linear
51
+ - num_epochs: 6
52
+
53
+ ### Training results
54
+
55
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy | Precision | Recall | F1 Score |
56
+ |:-------------:|:-----:|:----:|:---------------:|:--------:|:---------:|:------:|:--------:|
57
+ | 0.0186 | 1.0 | 592 | 0.1796 | 0.9833 | 0.9833 | 0.9833 | 0.9829 |
58
+ | 0.0078 | 2.0 | 1184 | 0.1189 | 0.9868 | 0.9868 | 0.9868 | 0.9867 |
59
+ | 0.006 | 3.0 | 1776 | 0.1062 | 0.9868 | 0.9868 | 0.9868 | 0.9866 |
60
+ | 0.0 | 4.0 | 2368 | 0.1319 | 0.9880 | 0.9880 | 0.9880 | 0.9879 |
61
+ | 0.0 | 5.0 | 2960 | 0.1356 | 0.9880 | 0.9880 | 0.9880 | 0.9879 |
62
+ | 0.0 | 6.0 | 3552 | 0.1368 | 0.9880 | 0.9880 | 0.9880 | 0.9879 |
63
+
64
+
65
+ ### Framework versions
66
+
67
+ - Transformers 4.37.0
68
+ - Pytorch 2.1.2
69
+ - Datasets 2.1.0
70
+ - Tokenizers 0.15.1
config.json ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "bert-base-uncased",
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
+ "initializer_range": 0.02,
13
+ "intermediate_size": 3072,
14
+ "layer_norm_eps": 1e-12,
15
+ "max_position_embeddings": 512,
16
+ "model_type": "bert",
17
+ "num_attention_heads": 12,
18
+ "num_hidden_layers": 12,
19
+ "pad_token_id": 0,
20
+ "position_embedding_type": "absolute",
21
+ "problem_type": "single_label_classification",
22
+ "torch_dtype": "float32",
23
+ "transformers_version": "4.37.0",
24
+ "type_vocab_size": 2,
25
+ "use_cache": true,
26
+ "vocab_size": 30522
27
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:06d9b7ff5f74a7ad3eb4ba53f0efaac099e9dac4d2b775f018e31f843c65b7a8
3
+ size 437958648
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:528985524471873d03e903ebaa110c38e138720a5c6140a8b84614e0ace9c82b
3
+ size 4792