Spectral Bias in Practice: the Role of Function Frequency in Generalization