From 07478a571747cecd675e371350baa709ed44a2c4 Mon Sep 17 00:00:00 2001 From: jajupmochi Date: Tue, 26 Jan 2021 10:10:59 +0100 Subject: [PATCH] [Exp] Add taskhub to run exps all in once. --- gklearn/experiments/taskhub.py | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 gklearn/experiments/taskhub.py diff --git a/gklearn/experiments/taskhub.py b/gklearn/experiments/taskhub.py new file mode 100644 index 0000000..370475d --- /dev/null +++ b/gklearn/experiments/taskhub.py @@ -0,0 +1,26 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +""" +Created on Tue Jan 26 09:53:33 2021 + +@author: ljia +""" + +if __name__ == '__main__': + tasks = [ + {'path': 'thesis/graph_kernels/fcsp', + 'file': 'run_jobs_compare_fcsp.py' + }, + {'path': 'thesis/graph_kernels/fcsp', + 'file': 'run_jobs_compare_fcsp_space.py' + }, + {'path': 'ged/stability', + 'file': 'Analysis_stability.ratios.real_data.relative_error.py' + }, + ] + + command = '' + for t in tasks: + command += 'cd ' + t['path'] + '\n' + command += 'python3 ' + t['file'] + '\n' + command += 'cd ' + '/'.join(['..'] * len(t['path'].split('/'))) + '\n'