Empirical variance component regression for sequence-function relationships