End of training
Browse files- README.md +7 -7
- config.json +0 -1
- configuration_alexnet.py +4 -5
- pytorch_model.bin +1 -1
- training_args.bin +1 -1
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.
|
19 |
-
- Accuracy: 0.
|
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.
|
54 |
-
| 0.
|
55 |
-
| 0.
|
56 |
-
| 0.
|
57 |
-
| 0.
|
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=
|
12 |
-
self.label2id=
|
13 |
-
self.num_labels =
|
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:
|
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:
|
3 |
size 4091
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:5328edd3fee2ca0c37eb4380a9a8b0df91e35c46aad555abd018bdf5336a3835
|
3 |
size 4091
|