You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

taskhub.py 682 B

1234567891011121314151617181920212223242526272829
  1. #!/usr/bin/env python3
  2. # -*- coding: utf-8 -*-
  3. """
  4. Created on Tue Jan 26 09:53:33 2021
  5. @author: ljia
  6. """
  7. if __name__ == '__main__':
  8. tasks = [
  9. {'path': 'thesis/graph_kernels/fcsp',
  10. 'file': 'run_jobs_compare_fcsp.py'
  11. },
  12. {'path': 'thesis/graph_kernels/fcsp',
  13. 'file': 'run_jobs_compare_fcsp_space.py'
  14. },
  15. {'path': 'ged/stability',
  16. 'file': 'run_job_edit_costs.real_data.nums_sols.ratios.IPFP.py'
  17. },
  18. ]
  19. import os
  20. for t in tasks:
  21. print(t['file'])
  22. command = ''
  23. command += 'cd ' + t['path'] + '\n'
  24. command += 'python3 ' + t['file'] + '\n'
  25. # command += 'cd ' + '/'.join(['..'] * len(t['path'].split('/'))) + '\n'
  26. os.system(command)

A Python package for graph kernels, graph edit distances and graph pre-image problem.