Hyperparameter Optimization: A Spectral Approach