Skip to content
Advertisement

why my model does not learn? Same on every epoch (Pytorch)

JavaScript

Output

0 – training loss: 0.0837 | test loss: 0.0806

100 – training loss: 0.0433 | test loss: 0.0431

200 – training loss: 0.0426 | test loss: 0.0425

300 – training loss: 0.042 | test loss: 0.0419

400 – training loss: 0.0414 | test loss: 0.0414

500 – training loss: 0.0408 | test loss: 0.0408

600 – training loss: 0.0403 | test loss: 0.0403

700 – training loss: 0.0398 | test loss: 0.0398

800 – training loss: 0.0393 | test loss: 0.0394

900 – training loss: 0.0388 | test loss: 0.0389

Advertisement

Answer

First, as it was mentioned in the comments, you probably meant:

JavaScript

Next, your target size is not consistent with the output size (this should give a warning). Using

JavaScript

should give you some traction.

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement