def METHOD_NAME(performance_calculator, regression_data) -> pd.DataFrame:
    # Get rid of negative values for log based metrics
    reference = regression_data[0][~(regression_data[0]['y_pred'] < 0)]
    analysis = regression_data[1][~(regression_data[1]['y_pred'] < 0)]
    performance_calculator.fit(reference)
    results = performance_calculator.calculate(analysis.join(regression_data[2])).filter(period='analysis')
    return results.data