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

random.sample in siamese CNN tutorial don't work (anymore?) #4

Open
MarcinMisiurewicz opened this issue Jan 31, 2020 · 0 comments
Open

Comments

@MarcinMisiurewicz
Copy link

picking random sample from dataset in next_pair with random.sample(foo,1) will produce error now. It works with random.choice(foo) though - lines 53 and 60.

Also getting loss from loss_contrastive should now look like this (line 142):
loss_log.append(loss_contrastive.item())

Thanks for the tutorial!

@MarcinMisiurewicz MarcinMisiurewicz changed the title random.sample don't work (anymore?) random.sample in siamese CNN tutorial don't work (anymore?) Jan 31, 2020
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