(experiment_path: str,
                    summary_filter: str = '**',
                    forecast_file: str = 'forecast.csv',
                    group_by: str = 'id')
return pd.concat([pd.read_csv(file)
                      for file in
                      tqdm(glob(os.path.join(experiment_path, summary_filter, forecast_file)))], sort=False) \
        .set_index(group_by).groupby(level=group_by, sort=False).median().values
Build a median ensemble from files found in the experiment path.

    :param experiment_path: Experiment path.
    :param summary_filter: Filter which experiment instances should be included in ensemble.
    :param forecast_file: Name of the file with results.
    :param group_by: Grouping key.
    :return: Pandas dataframe with median forecasts.
Build a median ensemble from files found in the experiment path.
Build a median ensemble from files found in the experiment path .
def median_ensemble(experiment_path: str,
                    summary_filter: str = '**',
                    forecast_file: str = 'forecast.csv',
                    group_by: str = 'id'):
    """
    Build a median ensemble from files found in the experiment path.

    :param experiment_path: Experiment path.
    :param summary_filter: Filter which experiment instances should be included in ensemble.
    :param forecast_file: Name of the file with results.
    :param group_by: Grouping key.
    :return: Pandas dataframe with median forecasts.
    """
    return pd.concat([pd.read_csv(file)
                      for file in
                      tqdm(glob(os.path.join(experiment_path, summary_filter, forecast_file)))], sort=False) \
        .set_index(group_by).groupby(level=group_by, sort=False).median().values
def median_ensemble ( experiment_path : str , summary_filter : str = '**' , forecast_file : str = 'forecast.csv' , group_by : str = 'id' ) : return pd . concat ( [ pd . read_csv ( file ) for file in tqdm ( glob ( os . path . join ( experiment_path , summary_filter , forecast_file ) ) ) ] , sort = False ) . set_index ( group_by ) . groupby ( level = group_by , sort = False ) . median ( ) . values