Working with Results
Working with Results
The ModelPipeline.run() method returns an EvaluationReport object with various analysis methods.
EvaluationReport Methods
report = pipeline.run(...)
# Overall summary per modelsummary = report.summary()
# Breakdown by hour of dayby_hour = report.by_hour()
# Breakdown by forecast horizonby_horizon = report.by_horizon()
# Combined hour × horizonby_hour_horizon = report.by_hour_horizon()
# Breakdown by yearby_year = report.by_year()
# Combined year × horizonby_year_horizon = report.by_year_horizon()Example Output
print(report.summary())# model MAE# 0 OLS 26.0199# 1 Lasso 28.1098
print(report.by_horizon())# model horizon MAE# 0 OLS 1 18.5432# 1 OLS 2 22.1234# 2 OLS 7 35.4567Accessing Raw Predictions
# Get all predictions as DataFramepredictions = report.predictions
print(predictions.head())# model horizon prediction actual# 2024-02-01 00:00 OLS 1 45.23 48.50