Browse Source

[Exp] Add taskhub to run exps all in once.

v0.2.x
jajupmochi 4 years ago
parent
commit
07478a5717
1 changed files with 26 additions and 0 deletions
  1. +26
    -0
      gklearn/experiments/taskhub.py

+ 26
- 0
gklearn/experiments/taskhub.py View File

@@ -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'

Loading…
Cancel
Save