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

about train the network in notebook two-layer-network #1

Open
zibo-zibo opened this issue May 6, 2021 · 0 comments
Open

about train the network in notebook two-layer-network #1

zibo-zibo opened this issue May 6, 2021 · 0 comments

Comments

@zibo-zibo
Copy link

I'm work on cs231n's 2021 spring assignment, and I got stuck in the two-layer-network. The loss of the train process are all inf, not some decreasing scalars.
The new assignment is more modular, the computation of loss and derivative are in different files, but the code is almost same of yours. I can't find where is the error which result in the inf loss. Have you ever encountered this situation.
It like this
input_size = 32 * 32 * 3 hidden_size = 50 num_classes = 10 model = TwoLayerNet(input_size, hidden_size, num_classes) solver = None solver = Solver(model, data, update_rule='sgd') solver.train()

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

1 participant