maml icon indicating copy to clipboard operation
maml copied to clipboard

ValueError: Sample larger than population or is negative in omniglot

Open Curry30h opened this issue 5 years ago • 2 comments

Curry30h avatar Oct 02 '19 07:10 Curry30h

I also get this question.I wonder if you have solved it.And tell me how to do.Looking forward to your reply,thank you. @Curry30h

mushroompyq avatar Oct 25 '19 08:10 mushroompyq

@Curry30h @mushroompyq utils.py line 16

sampler = lambda x: random.sample(x, nb_samples) change to: sampler = lambda x: random.sample(x, nb_samples if len(x) > nb_samples else len(x))

Hope this information will help you.

ed830418 avatar Dec 23 '19 02:12 ed830418