def _prepare_local_ratings(
    self,
    ratings: pd.DataFrame,
    scoredNotes: pd.DataFrame,
  ) -> pd.DataFrame:
    """Filter ratings DF to only include ratings on the notes being scored.

    Args:
      ratings: pd.DataFrame containing all ratings used in scoring
      scoredNotes: pd.DataFrame specifying which notes are actually being scored
    """
    return ratings.merge(scoredNotes[[c.noteIdKey]])
Filter ratings DF to only include ratings on the notes being scored.

    Args:
      ratings: pd.DataFrame containing all ratings used in scoring
      scoredNotes: pd.DataFrame specifying which notes are actually being scored
    
sourcecode/scoring/pflip_plus_model.py