original_docstring: Returns percentage of correct predictions.
  
          :param pred: ndarray, predictions.
          :param true: ndarray, true y values.
          :param rounding: If True, rounds values to 0 decimal parts.
          :return: float, accuracy
          
docstring: Returns percentage of correct predictions.
docstring_tokens: Returns percentage of correct predictions .
code: def accuracy(pred, true, rounding=True):
          """Returns percentage of correct predictions.
  
          :param pred: ndarray, predictions.
          :param true: ndarray, true y values.
          :param rounding: If True, rounds values to 0 decimal parts.
          :return: float, accuracy
          """
          pred = pred.round() if rounding else pred
          return np.mean(np.double(pred.ravel() == true.ravel())) * 100
code_tokens: def accuracy ( pred , true , rounding = True ) : pred = pred . round ( ) if rounding else pred return np . mean ( np . double ( pred . ravel ( ) == true . ravel ( ) ) ) * 100
short_docstring: Returns percentage of correct predictions.
short_docstring_tokens: Returns percentage of correct predictions .
comment: """Returns percentage of correct predictions.
  
          :param pred: ndarray, predictions.
          :param true: ndarray, true y values.
          :param rounding: If True, rounds values to 0 decimal parts.
          :return: float, accuracy
          """