Learning Data-adaptive Nonparametric Kernels