Added crps + profit logging and updated plots for non autoregressive models

This commit is contained in:
2024-02-28 17:12:51 +01:00
parent 420c9dc6ac
commit fe1e388ffb
6 changed files with 253 additions and 70 deletions

View File

@@ -239,15 +239,28 @@ class PolicyEvaluator:
penalty_profits[penalty] += profit
penalty_charge_cycles[penalty] += charge_cycles
# transform profits to per year: penalty_profits / penalty_charge_cycles * 400 cycles per year
transformed_profits_per_year = {}
for penalty in penalty_profits:
transformed_profits_per_year[penalty] = (
penalty_profits[penalty] / penalty_charge_cycles[penalty] * 400
)
df = pd.DataFrame(
list(
zip(
penalty_profits.keys(),
penalty_profits.values(),
penalty_charge_cycles.values(),
transformed_profits_per_year.values(),
)
),
columns=["Penalty", "Profit_till_400", "Cycles_till_400"],
columns=[
"Penalty",
"Profit_till_400",
f"Cycles_till_400 (max {usable_charge_cycles})",
"Profit_per_year_till_400",
],
)
return df