BeckerAnas commited on
Commit
6c13e3f
·
verified ·
1 Parent(s): 47a176b

Model save

Browse files
README.md ADDED
@@ -0,0 +1,80 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ license: apache-2.0
4
+ base_model: facebook/convnext-tiny-224
5
+ tags:
6
+ - generated_from_trainer
7
+ metrics:
8
+ - accuracy
9
+ - precision
10
+ - recall
11
+ - f1
12
+ model-index:
13
+ - name: devout-voice-234
14
+ results: []
15
+ ---
16
+
17
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
18
+ should probably proofread and complete it, then remove this comment. -->
19
+
20
+ # devout-voice-234
21
+
22
+ This model is a fine-tuned version of [facebook/convnext-tiny-224](https://huggingface.co/facebook/convnext-tiny-224) on an unknown dataset.
23
+ It achieves the following results on the evaluation set:
24
+ - Loss: 0.4823
25
+ - Accuracy: 0.6195
26
+ - Precision: 0.7580
27
+ - Recall: 0.6195
28
+ - F1: 0.6418
29
+ - Roc Auc: 0.9108
30
+
31
+ ## Model description
32
+
33
+ More information needed
34
+
35
+ ## Intended uses & limitations
36
+
37
+ More information needed
38
+
39
+ ## Training and evaluation data
40
+
41
+ More information needed
42
+
43
+ ## Training procedure
44
+
45
+ ### Training hyperparameters
46
+
47
+ The following hyperparameters were used during training:
48
+ - learning_rate: 0.0001
49
+ - train_batch_size: 256
50
+ - eval_batch_size: 256
51
+ - seed: 42
52
+ - optimizer: Use OptimizerNames.ADAMW_TORCH with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
53
+ - lr_scheduler_type: cosine
54
+ - lr_scheduler_warmup_ratio: 0.1
55
+ - num_epochs: 40
56
+
57
+ ### Training results
58
+
59
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy | Precision | Recall | F1 | Roc Auc |
60
+ |:-------------:|:-----:|:----:|:---------------:|:--------:|:---------:|:------:|:------:|:-------:|
61
+ | 1.3843 | 1.0 | 15 | 1.3708 | 0.2922 | 0.5011 | 0.2922 | 0.2957 | 0.6501 |
62
+ | 1.3354 | 2.0 | 30 | 1.3256 | 0.5062 | 0.5231 | 0.5062 | 0.4827 | 0.7450 |
63
+ | 1.2134 | 3.0 | 45 | 1.1394 | 0.5508 | 0.5749 | 0.5508 | 0.4751 | 0.7934 |
64
+ | 1.0408 | 4.0 | 60 | 0.9792 | 0.5188 | 0.6137 | 0.5188 | 0.5357 | 0.8100 |
65
+ | 0.881 | 5.0 | 75 | 0.6658 | 0.5508 | 0.5913 | 0.5508 | 0.5508 | 0.8320 |
66
+ | 0.7118 | 6.0 | 90 | 0.6165 | 0.5086 | 0.6760 | 0.5086 | 0.5172 | 0.8318 |
67
+ | 0.7556 | 7.0 | 105 | 0.5697 | 0.6070 | 0.6564 | 0.6070 | 0.6078 | 0.8671 |
68
+ | 0.6212 | 8.0 | 120 | 0.5433 | 0.5664 | 0.7000 | 0.5664 | 0.5755 | 0.8680 |
69
+ | 0.5591 | 9.0 | 135 | 0.4504 | 0.6797 | 0.7197 | 0.6797 | 0.6849 | 0.8983 |
70
+ | 0.4785 | 10.0 | 150 | 0.4269 | 0.6727 | 0.7115 | 0.6727 | 0.6706 | 0.9120 |
71
+ | 0.4093 | 11.0 | 165 | 0.4239 | 0.6742 | 0.7948 | 0.6742 | 0.6650 | 0.9345 |
72
+ | 0.4033 | 12.0 | 180 | 0.4823 | 0.6195 | 0.7580 | 0.6195 | 0.6418 | 0.9108 |
73
+
74
+
75
+ ### Framework versions
76
+
77
+ - Transformers 4.52.3
78
+ - Pytorch 2.7.0+cpu
79
+ - Datasets 3.6.0
80
+ - Tokenizers 0.21.0
best_model/config.json ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "ConvNextForImageClassification"
4
+ ],
5
+ "depths": [
6
+ 3,
7
+ 3,
8
+ 9,
9
+ 3
10
+ ],
11
+ "drop_path_rate": 0.0,
12
+ "hidden_act": "gelu",
13
+ "hidden_sizes": [
14
+ 96,
15
+ 192,
16
+ 384,
17
+ 768
18
+ ],
19
+ "id2label": {
20
+ "0": "Mild_Demented",
21
+ "1": "Moderate_Demented",
22
+ "2": "Non_Demented",
23
+ "3": "Very_Mild_Demented"
24
+ },
25
+ "image_size": 224,
26
+ "initializer_range": 0.02,
27
+ "label2id": {
28
+ "Mild_Demented": 0,
29
+ "Moderate_Demented": 1,
30
+ "Non_Demented": 2,
31
+ "Very_Mild_Demented": 3
32
+ },
33
+ "layer_norm_eps": 1e-12,
34
+ "layer_scale_init_value": 1e-06,
35
+ "model_type": "convnext",
36
+ "num_channels": 3,
37
+ "num_stages": 4,
38
+ "out_features": [
39
+ "stage4"
40
+ ],
41
+ "out_indices": [
42
+ 4
43
+ ],
44
+ "patch_size": 4,
45
+ "stage_names": [
46
+ "stem",
47
+ "stage1",
48
+ "stage2",
49
+ "stage3",
50
+ "stage4"
51
+ ],
52
+ "torch_dtype": "float32",
53
+ "transformers_version": "4.52.3"
54
+ }
best_model/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1ba55ad5ea0e0c09461f6386781465aa6d5da9119398dbbe436067b4bb8b1abb
3
+ size 111314088
best_model/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0db73a228985d421b1d78c66103e0a51e787ba8755136a7817634e9f921ea0f0
3
+ size 5713
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:29a5ccd3f9dc04c7f1c8f8d4ea72ca892ad3017f65c422cfd2ec57028cca8984
3
  size 111314088
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1ba55ad5ea0e0c09461f6386781465aa6d5da9119398dbbe436067b4bb8b1abb
3
  size 111314088