fix accuracy computation

This commit is contained in:
2024-01-15 21:09:58 +08:00
parent 9404557763
commit 391c70753d
17 changed files with 41 additions and 42 deletions

View File

@ -1,7 +1,7 @@
{
"train_loss": 2.2422571182250977,
"train_acc": 0.7347080707550049,
"valid_loss": 2.3184266090393066,
"valid_acc": 0.7381500005722046,
"train_loss": 2.2407546043395996,
"train_acc": 0.22537143528461456,
"valid_loss": 2.324389696121216,
"valid_acc": 0.20746666193008423,
"step": 4
}

View File

@ -1,6 +1,6 @@
step train_acc
0 0.6712241768836975
1 0.6976224184036255
2 0.7157850861549377
3 0.7277812957763672
4 0.7347080707550049
0 0.0997999981045723
1 0.13202856481075287
2 0.16345714032649994
3 0.19614285230636597
4 0.22537143528461456

1 step train_acc
2 0 0.6712241768836975 0.0997999981045723
3 1 0.6976224184036255 0.13202856481075287
4 2 0.7157850861549377 0.16345714032649994
5 3 0.7277812957763672 0.19614285230636597
6 4 0.7347080707550049 0.22537143528461456

View File

@ -1,6 +1,6 @@
step train_loss
0 3.0726168155670166
1 2.7409346103668213
2 2.5224294662475586
3 2.364570140838623
4 2.2422571182250977
0 3.096755027770996
1 2.749246120452881
2 2.522728681564331
3 2.3631479740142822
4 2.2407546043395996

1 step train_loss
2 0 3.0726168155670166 3.096755027770996
3 1 2.7409346103668213 2.749246120452881
4 2 2.5224294662475586 2.522728681564331
5 3 2.364570140838623 2.3631479740142822
6 4 2.2422571182250977 2.2407546043395996

View File

@ -1,6 +1,6 @@
step valid_acc
0 0.6918894052505493
1 0.7131190896034241
2 0.7261338233947754
3 0.7339118123054504
4 0.7381500005722046
0 0.10953333228826523
1 0.13466666638851166
2 0.15913332998752594
3 0.18406666815280914
4 0.20746666193008423

1 step valid_acc
2 0 0.6918894052505493 0.10953333228826523
3 1 0.7131190896034241 0.13466666638851166
4 2 0.7261338233947754 0.15913332998752594
5 3 0.7339118123054504 0.18406666815280914
6 4 0.7381500005722046 0.20746666193008423

View File

@ -1,6 +1,6 @@
step valid_loss
0 2.890321969985962
1 2.669679880142212
2 2.5183584690093994
3 2.4061686992645264
4 2.3184266090393066
0 2.919710636138916
1 2.68220853805542
2 2.524806022644043
3 2.4115779399871826
4 2.324389696121216

1 step valid_loss
2 0 2.890321969985962 2.919710636138916
3 1 2.669679880142212 2.68220853805542
4 2 2.5183584690093994 2.524806022644043
5 3 2.4061686992645264 2.4115779399871826
6 4 2.3184266090393066 2.324389696121216

View File

@ -10,7 +10,7 @@ metrics.json
| train_loss | train_acc | valid_loss | valid_acc | step |
|--------------|-------------|--------------|-------------|--------|
| 2.24226 | 0.734708 | 2.31843 | 0.73815 | 4 |
| 2.24075 | 0.225371 | 2.32439 | 0.207467 | 4 |
![static/valid_loss](static/valid_loss.png)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 21 KiB

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 21 KiB

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 22 KiB

After

Width:  |  Height:  |  Size: 22 KiB