parameters: (spectrum, n_samples, n_features)
return_statement: return ll.argmax()
docstring: Infers the dimension of a dataset of shape (n_samples, n_features)
  
      The dataset is described by its spectrum `spectrum`.
docstring_summary: Infers the dimension of a dataset of shape (n_samples, n_features)
docstring_tokens: Infers the dimension of a dataset of shape ( n_samples n_features )
function: def _infer_dimension_(spectrum, n_samples, n_features):
      """Infers the dimension of a dataset of shape (n_samples, n_features)
  
      The dataset is described by its spectrum `spectrum`.
      """
      n_spectrum = len(spectrum)
      ll = np.empty(n_spectrum)
      for rank in range(n_spectrum):
          ll[rank] = _assess_dimension_(spectrum, rank, n_samples, n_features)
      return ll.argmax()
function_tokens: def _infer_dimension_ ( spectrum , n_samples , n_features ) : n_spectrum = len ( spectrum ) ll = np . empty ( n_spectrum ) for rank in range ( n_spectrum ) : ll [ rank ] = _assess_dimension_ ( spectrum , rank , n_samples , n_features ) return ll . argmax ( )