train+test freq dict