def _set_to_list(series: pd.Series) -> List:
  """Helper function to convert a Series containing sets to lists."""
  assert isinstance(series, pd.Series)
  return [list(x) for x in series]
Helper function to convert a Series containing sets to lists.
sourcecode/scoring/pflip_plus_model.py