Learning From Subsampled Data: Active And Randomized Strategies