Filter into true rdd and false rdd. Union true rdd and sample of false rdd. On Aug 28, 2015 2:57 AM, "Gavin Yue" <[email protected]> wrote:
> Hey, > > > I have a RDD[(String,Boolean)]. I want to keep all Boolean: True rows and > randomly keep some Boolean:false rows. And hope in the final result, the > negative ones could be 10 times more than positive ones. > > > What would be most efficient way to do this? > > Thanks, > > > >
