def get_incorrect_aggregates(
  ratings: pd.DataFrame,
  noteParams: pd.DataFrame,
  raterParams: pd.DataFrame,
) -> pd.DataFrame:
  """
  Legacy version of this function, computable all at once instead of being called separately in prescoring
  vs. final scoring.
  """
  # get per user incorrect term frequency -- normally called during prescoring
  raterParamsWithRatingCounts = raterParams.merge(get_user_incorrect_ratio(ratings))

  return get_incorrect_aggregates_final_scoring(ratings, noteParams, raterParamsWithRatingCounts)

  Legacy version of this function, computable all at once instead of being called separately in prescoring
  vs. final scoring.
  
sourcecode/scoring/incorrect_filter.py