def _check_means(means, n_components, n_features):
 means = check_array(means, dtype=[np.float64, np.float32], ensure_2d=False)
 _check_shape(means, (n_components, n_features), 'means')
 return means

def _check_means ( means , n_components , n_features ) : means = check_array ( means , dtype = [ np . float64 , np . float32 ] , ensure_2d = False ) _check_shape ( means , ( n_components , n_features ) , 'means' ) return means
validate the provided means .