Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to add new loss in assignment2 pytorch nootbook? #1

Open
Cb1ock opened this issue Jan 14, 2024 · 1 comment
Open

how to add new loss in assignment2 pytorch nootbook? #1

Cb1ock opened this issue Jan 14, 2024 · 1 comment

Comments

@Cb1ock
Copy link

Cb1ock commented Jan 14, 2024

在这个作业的最后一部分要求实现一个大于70正确率的网络,并且随便你用什么网络,loss,optmizer,等等。但是我不知道如何使用其他的loss。

@ccmoony
Copy link
Owner

ccmoony commented Jan 15, 2024

softmax 和cross-entropy loss 还有其他的都可以试试。我用的是题目中给的train_part34函数(具体实现在前面的cell中),默认用的是cross-entropy loss,你可以通过修改train_part34用其他损失函数看会不会有更好的accuracy。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants