Thresholding in Learning Theory