Spectrally Transformed Kernel Regression