docs: def plot_distributions(y_true, scores, save_to, xlim=None, nbins=100, ymax=3., dpi=150):
      """Scores distributions
  
      This function will create (and overwrite) the following files:
          - {save_to}.scores.png
          - {save_to}.scores.eps
  
      Parameters
      ----------
      y_true : (n_samples, ) array-like
          Boolean reference.
      scores : (n_samples, ) array-like
          Predicted score.
      save_to : str
          Files path prefix
      """
  
      plt.figure(figsize=(12, 12))
  
      if xlim is None:
          xlim = (np.min(scores), np.max(scores))
  
      bins = np.linspace(xlim[0], xlim[1], nbins)
      plt.hist(scores[y_true], bins=bins, color='g', alpha=0.5, normed=True)
      plt.hist(scores[~y_true], bins=bins, color='r', alpha=0.5, normed=True)
  
      # TODO heuristic to estimate ymax from nbins and xlim
      plt.ylim(0, ymax)
      plt.tight_layout()
      plt.savefig(save_to + '.scores.png', dpi=dpi)
      plt.savefig(save_to + '.scores.eps')
      plt.close()
  
      return True