Learning sets with separating kernels