I recently started using mongodb and pymongo, and am aware of using $sample to sample. There are multiple questions on stackoverflow regarding sampling from a mongo db, and in some of those questions there are comments warning that the sample is with replacement, but did not address how to sample without replacement.
But I would to sample without replacement! Any solutions that are efficient and non-hacky?
Aucun commentaire:
Enregistrer un commentaire