Author rhettinger
Recipients mark.dickinson, pablogsal, piotrjurkiewicz, rhettinger
Date 2018-07-26.06:42:37
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1532587357.54.0.56676864532.issue34227@psf.upfronthosting.co.za>
In-reply-to
Content
Thank for the suggestion and patch, but I will decline.  To me, the reseviour style algorithm doesn't fit in well (with the slow sorting step and the frequent calls to the random in the key function). For large population sizes (which sample() was designed for), the API and algorithm perform badly.  For typical student "urn problems", the better approach is to pre-weight the population by the exact counts specified in the problem.  I recommend that you post a recipe for what you want to do, but I don't think the standard library is the place for it.
History
Date User Action Args
2018-07-26 06:42:37rhettingersetrecipients: + rhettinger, mark.dickinson, piotrjurkiewicz, pablogsal
2018-07-26 06:42:37rhettingersetmessageid: <1532587357.54.0.56676864532.issue34227@psf.upfronthosting.co.za>
2018-07-26 06:42:37rhettingerlinkissue34227 messages
2018-07-26 06:42:37rhettingercreate