From 8864e4dd05e2c74f5ed8d497f01d6b52aa2ed45e Mon Sep 17 00:00:00 2001
From: Pat Alt <55311242+pat-alt@users.noreply.github.com>
Date: Fri, 8 Sep 2023 13:17:40 +0200
Subject: [PATCH] added bash file and updated deps

---
 experiments/hpc_blue.sh                | 12 ++++++++++++
 experiments/post_processing/results.jl | 14 ++++++++++++++
 2 files changed, 26 insertions(+)
 create mode 100644 experiments/hpc_blue.sh
 create mode 100644 experiments/post_processing/results.jl

diff --git a/experiments/hpc_blue.sh b/experiments/hpc_blue.sh
new file mode 100644
index 00000000..2dc8c6b4
--- /dev/null
+++ b/experiments/hpc_blue.sh
@@ -0,0 +1,12 @@
+#!/bin/bash
+
+#SBATCH --job-name="Counterfactuals"
+#SBATCH --time=00:20:00
+#SBATCH --ntasks=24
+#SBATCH --cpus-per-task=1
+#SBATCH --partition=compute
+#SBATCH --mem-per-cpu=4GB
+#SBATCH --account=innovation
+#SBATCH --mail-type=END     # Set mail type to 'END' to receive a mail when the job finishes. 
+
+module load 2023r1 openmpi julia
diff --git a/experiments/post_processing/results.jl b/experiments/post_processing/results.jl
new file mode 100644
index 00000000..01e31bef
--- /dev/null
+++ b/experiments/post_processing/results.jl
@@ -0,0 +1,14 @@
+"""
+    aggregate(outcome::ExperimentOutcome; measure::String="distance_from_targets")
+
+Function to quickly aggregate benchmarking results for a given measure.
+"""
+function aggregate(outcome::ExperimentOutcome; measure::String="distance_from_targets")
+    df = @chain outcome.bmk() begin
+        @group_by(generator, model)
+        @filter(variable == measure)
+        @summarize(val = mean(value), std = std(value))
+        @ungroup
+    end
+    return df
+end
\ No newline at end of file
-- 
GitLab