dyaminda commited on
Commit
cf458c2
1 Parent(s): dab3b20

End of training

Browse files
README.md CHANGED
@@ -15,8 +15,8 @@ should probably proofread and complete it, then remove this comment. -->
15
 
16
  This model is a fine-tuned version of [](https://huggingface.co/) on an unknown dataset.
17
  It achieves the following results on the evaluation set:
18
- - Loss: 0.1220
19
- - Accuracy: 0.9531
20
 
21
  ## Model description
22
 
@@ -50,11 +50,11 @@ The following hyperparameters were used during training:
50
 
51
  | Training Loss | Epoch | Step | Validation Loss | Accuracy |
52
  |:-------------:|:-----:|:----:|:---------------:|:--------:|
53
- | 0.4165 | 0.99 | 52 | 0.2990 | 0.8902 |
54
- | 0.2961 | 2.0 | 105 | 0.2657 | 0.8974 |
55
- | 0.1728 | 2.99 | 157 | 0.1917 | 0.9177 |
56
- | 0.2614 | 4.0 | 210 | 0.2160 | 0.9165 |
57
- | 0.1238 | 4.95 | 260 | 0.1240 | 0.9499 |
58
 
59
 
60
  ### Framework versions
 
15
 
16
  This model is a fine-tuned version of [](https://huggingface.co/) on an unknown dataset.
17
  It achieves the following results on the evaluation set:
18
+ - Loss: 0.1200
19
+ - Accuracy: 0.9541
20
 
21
  ## Model description
22
 
 
50
 
51
  | Training Loss | Epoch | Step | Validation Loss | Accuracy |
52
  |:-------------:|:-----:|:----:|:---------------:|:--------:|
53
+ | 0.4084 | 0.99 | 52 | 0.3509 | 0.8628 |
54
+ | 0.251 | 2.0 | 105 | 0.1811 | 0.9332 |
55
+ | 0.1841 | 2.99 | 157 | 0.2061 | 0.9189 |
56
+ | 0.198 | 4.0 | 210 | 0.1512 | 0.9391 |
57
+ | 0.1229 | 4.95 | 260 | 0.1240 | 0.9547 |
58
 
59
 
60
  ### Framework versions
config.json CHANGED
@@ -8,7 +8,6 @@
8
  },
9
  "input_channels": 3,
10
  "model_type": "alexnet",
11
- "num_classes": 2,
12
  "torch_dtype": "float32",
13
  "transformers_version": "4.33.2"
14
  }
 
8
  },
9
  "input_channels": 3,
10
  "model_type": "alexnet",
 
11
  "torch_dtype": "float32",
12
  "transformers_version": "4.33.2"
13
  }
configuration_alexnet.py CHANGED
@@ -3,13 +3,12 @@ from transformers import PretrainedConfig
3
 
4
  class AlexNetConfig(PretrainedConfig):
5
  model_type = "alexnet"
6
- def __init__(self, **kwargs):
7
- self.num_classes = 2
8
  self.input_channels = 3
9
  self.output_hidden_states = True
10
  self.return_dict = True
11
- self.id2label={0: "normal", 1: "pneumonia"}
12
- self.label2id={"normal": 0, "pneumonia": 1}
13
- self.num_labels = 2
14
  self.model_type = "alexnet"
15
  super().__init__(**kwargs)
 
3
 
4
  class AlexNetConfig(PretrainedConfig):
5
  model_type = "alexnet"
6
+ def __init__(self, id2label=None, label2id=None, labels=[], **kwargs):
 
7
  self.input_channels = 3
8
  self.output_hidden_states = True
9
  self.return_dict = True
10
+ self.id2label=id2label
11
+ self.label2id=label2id
12
+ self.num_labels = len(labels)
13
  self.model_type = "alexnet"
14
  super().__init__(**kwargs)
pytorch_model.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:ad61d47816f85c94b70f61cc1123526099a9ff816cff43cbe9740a137f369f31
3
  size 233163169
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:81529019ecc95f51f2d7be8a08f9da16ef91ca7cc2261c29deb44934e1dac973
3
  size 233163169
training_args.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:65f1e54e241feacc3bb70e713d7bdb2ac39f27aa661eff0a7b3345d93d4fa843
3
  size 4091
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5328edd3fee2ca0c37eb4380a9a8b0df91e35c46aad555abd018bdf5336a3835
3
  size 4091