Function Spaces Without Kernels: Learning Compact Hilbert Space Representations