def _prepare_data_for_scoring(self, ratings: pd.DataFrame, final: bool = False) -> pd.DataFrame:
    """Prepare data for scoring. This includes filtering out notes and raters which do not meet
    minimum rating counts, and may be overridden by subclasses to add additional filtering.
    """
    if final:
      return process_data.filter_ratings(
        ratings, minNumRatingsPerRater=0, minNumRatersPerNote=self._minNumRatersPerNote
      )
    else:
      return process_data.filter_ratings(
        ratings,
        minNumRatingsPerRater=self._minNumRatingsPerRater,
        minNumRatersPerNote=self._minNumRatersPerNote,
      )
Prepare data for scoring. This includes filtering out notes and raters which do not meet
    minimum rating counts, and may be overridden by subclasses to add additional filtering.
    
sourcecode/scoring/mf_base_scorer.py