in backend/time-series-forecasting/services/forecast_job_coordinator.py [0:0]
def get_evaluation(self, job_id: str) -> Optional[pd.DataFrame]:
"""Get the evaluation dataframe for a given job_id.
Args:
job_id (str): Job id.
Returns:
Optional[pd.DataFrame]: The evaluation dataframe.
"""
job = self._completed_jobs.get(job_id)
if job is None:
return None
table_id = job.evaluation_uri
return self._get_bigquery_table_as_df(table_id=table_id) if table_id else None