def _estimate_gaussian_covariances_spherical(resp, X, nk, means, reg_covar):
 return _estimate_gaussian_covariances_diag(resp, X, nk, means, reg_covar).mean(1)

def _estimate_gaussian_covariances_spherical ( resp , X , nk , means , reg_covar ) : return _estimate_gaussian_covariances_diag ( resp , X , nk , means , reg_covar ) . mean ( 1 )
estimate the spherical variance values .