def _get_se_matern_scale_bw_strs(kern):
  """ Gets descriptions of the bandwidths and scales for the SE and matern kernels. """
  if kern.dim > 6:
    bw_str = 'avg-bw: %0.4f'%(kern.hyperparams['dim_bandwidths'].mean())
  else:
    bw_str = 'bws:[' + ' '.join(['%0.2f'%(dbw) for dbw in
                                 kern.hyperparams['dim_bandwidths']]) + ']'
  scale_str = 'sc:%0.4f'%(kern.hyperparams['scale'])
  return scale_str, bw_str