A nonstandard application of cross-validation to estimate density functionals