End of training
Browse files- README.md +8 -4
- modeling_alexnet.py +7 -6
- 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 |
|
@@ -44,13 +44,17 @@ The following hyperparameters were used during training:
|
|
44 |
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
45 |
- lr_scheduler_type: linear
|
46 |
- lr_scheduler_warmup_ratio: 0.1
|
47 |
-
- num_epochs:
|
48 |
|
49 |
### Training results
|
50 |
|
51 |
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
52 |
|:-------------:|:-----:|:----:|:---------------:|:--------:|
|
53 |
-
| 0.
|
|
|
|
|
|
|
|
|
54 |
|
55 |
|
56 |
### 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.1500
|
19 |
+
- Accuracy: 0.9407
|
20 |
|
21 |
## Model description
|
22 |
|
|
|
44 |
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
45 |
- lr_scheduler_type: linear
|
46 |
- lr_scheduler_warmup_ratio: 0.1
|
47 |
+
- num_epochs: 5
|
48 |
|
49 |
### Training results
|
50 |
|
51 |
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
52 |
|:-------------:|:-----:|:----:|:---------------:|:--------:|
|
53 |
+
| 0.4088 | 0.99 | 52 | 0.2977 | 0.8926 |
|
54 |
+
| 0.2328 | 2.0 | 105 | 0.1746 | 0.9379 |
|
55 |
+
| 0.1758 | 2.99 | 157 | 0.1439 | 0.9523 |
|
56 |
+
| 0.1586 | 4.0 | 210 | 0.1292 | 0.9475 |
|
57 |
+
| 0.1231 | 4.95 | 260 | 0.1248 | 0.9487 |
|
58 |
|
59 |
|
60 |
### Framework versions
|
modeling_alexnet.py
CHANGED
@@ -33,13 +33,14 @@ class AlexNetPneumoniaClassification(PreTrainedModel):
|
|
33 |
x = torch.relu(self.fc2(x))
|
34 |
logits = self.fc3(x)
|
35 |
loss = None
|
36 |
-
if labels is not None:
|
37 |
loss_fct = nn.CrossEntropyLoss()
|
38 |
loss = loss_fct(logits.view(-1, self.num_labels), labels)
|
39 |
return SequenceClassifierOutput(
|
40 |
-
|
41 |
-
|
42 |
)
|
43 |
-
|
44 |
-
|
45 |
-
|
|
|
|
33 |
x = torch.relu(self.fc2(x))
|
34 |
logits = self.fc3(x)
|
35 |
loss = None
|
36 |
+
if labels is not None:
|
37 |
loss_fct = nn.CrossEntropyLoss()
|
38 |
loss = loss_fct(logits.view(-1, self.num_labels), labels)
|
39 |
return SequenceClassifierOutput(
|
40 |
+
loss=loss,
|
41 |
+
logits=logits,
|
42 |
)
|
43 |
+
|
44 |
+
return SequenceClassifierOutput(
|
45 |
+
logits=logits,
|
46 |
+
)
|
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:ca4cdd2854a8a46751aba0b0afe86995032b9cbb99ae9dd3fbaf5c890b0cfd46
|
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:2a9fcaacba87b1529027be7d0c8e682011a8e4e3e8dca2b9b7d85263e4825227
|
3 |
size 4091
|