Choosing random element

2015-06-16 Thread Maximilian Alber
Hi Flinksters, again a similar problem. I would like to choose ONE random element out of a data set, without shuffling the whole set. Again I would like to have the element (mathematically) randomly chosen. Thanks! Cheers, Max

Re: Choosing random element

2015-06-16 Thread Maximilian Alber
Thanks! Cheers, Max On Tue, Jun 16, 2015 at 11:01 AM, Till Rohrmann trohrm...@apache.org wrote: This might help you [1]. Cheers, Till [1] http://stackoverflow.com/questions/2514061/how-to-pick-random-small-data-samples-using-map-reduce On Tue, Jun 16, 2015 at 10:16 AM Maximilian Alber

Re: Choosing random element

2015-06-16 Thread Till Rohrmann
This might help you [1]. Cheers, Till [1] http://stackoverflow.com/questions/2514061/how-to-pick-random-small-data-samples-using-map-reduce On Tue, Jun 16, 2015 at 10:16 AM Maximilian Alber alber.maximil...@gmail.com wrote: Hi Flinksters, again a similar problem. I would like to choose ONE

Re: Choosing random element

2015-06-16 Thread Sachin Goel
Hi If you're looking for an implementation, I wrote this in context of a Random k-means initialization. Take a look at the {{weightedFit}} function.