Browse Source

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

v0.2.x
jajupmochi 4 years ago
parent
commit
13ac6d9153
1 changed files with 3 additions and 4 deletions
  1. +3
    -4
      gklearn/experiments/taskhub.py

+ 3
- 4
gklearn/experiments/taskhub.py View File

@@ -19,12 +19,11 @@ if __name__ == '__main__':
},
]

import os
command = ''
for t in tasks:
print(t['file'])
command += 'cd ' + t['path'] + '\n'
command += 'python3 ' + t['file'] + '\n'
command += 'cd ' + '/'.join(['..'] * len(t['path'].split('/'))) + '\n'

import os
os.system(command)
# command += 'cd ' + '/'.join(['..'] * len(t['path'].split('/'))) + '\n'
os.system(command)

Loading…
Cancel
Save