printing test and training error for frequency experiments