Skip to content
Snippets Groups Projects
Commit aee2a987 authored by leufen1's avatar leufen1
Browse files

just disable parts of postprocessing for testing the competitors

parent 3d46db4d
No related branches found
No related tags found
3 merge requests!253include current develop,!252Resolve "release v1.3.0",!196Resolve "Competitor Models"
...@@ -91,16 +91,16 @@ class PostProcessing(RunEnvironment): ...@@ -91,16 +91,16 @@ class PostProcessing(RunEnvironment):
def _run(self): def _run(self):
# ols model # ols model
self.train_ols_model() # self.train_ols_model()
# forecasts # forecasts
self.make_prediction() # self.make_prediction()
# competitors # competitors
self.load_competitors() # self.load_competitors()
# skill scores on test data # skill scores on test data
self.calculate_test_score() # self.calculate_test_score()
# bootstraps # bootstraps
if self.data_store.get("evaluate_bootstraps", "postprocessing"): if self.data_store.get("evaluate_bootstraps", "postprocessing"):
...@@ -109,8 +109,8 @@ class PostProcessing(RunEnvironment): ...@@ -109,8 +109,8 @@ class PostProcessing(RunEnvironment):
self.bootstrap_postprocessing(create_new_bootstraps) self.bootstrap_postprocessing(create_new_bootstraps)
# skill scores # skill scores
with TimeTracking(name="calculate skill scores"): # with TimeTracking(name="calculate skill scores"):
self.skill_scores = self.calculate_skill_scores() # self.skill_scores = self.calculate_skill_scores()
# plotting # plotting
self.plot() self.plot()
...@@ -293,7 +293,7 @@ class PostProcessing(RunEnvironment): ...@@ -293,7 +293,7 @@ class PostProcessing(RunEnvironment):
logging.warning( logging.warning(
f"Skip 'PlotStationMap` because running on a hpc node: {self.data_store.get('hostname')}") f"Skip 'PlotStationMap` because running on a hpc node: {self.data_store.get('hostname')}")
else: else:
PlotStationMap(generators={'b': self.test_data}, plot_folder=self.plot_path) PlotStationMap(generators={'r': self.train_val_data, 'b': self.test_data}, plot_folder=self.plot_path)
if "PlotMonthlySummary" in plot_list: if "PlotMonthlySummary" in plot_list:
PlotMonthlySummary(self.test_data.keys(), path, r"forecasts_%s_test.nc", self.target_var, PlotMonthlySummary(self.test_data.keys(), path, r"forecasts_%s_test.nc", self.target_var,
plot_folder=self.plot_path) plot_folder=self.plot_path)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment