Use kernel ridge regression to learn the density functional from data.