Skip to content

Commit cf369e0

Browse files
author
Hoang Pham
committed
first commit
0 parents  commit cf369e0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+1570
-0
lines changed

.DS_Store

6 KB
Binary file not shown.

README.md

Lines changed: 8 additions & 0 deletions

batch_script.py

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
import shlex
2+
import subprocess
3+
import argparse
4+
import numpy as np
5+
6+
7+
parser = argparse.ArgumentParser()
8+
parser.add_argument('--gpu')
9+
parser.add_argument('--task')
10+
parser.add_argument('--seed')
11+
args = parser.parse_args()
12+
13+
14+
model = 'AIRL'
15+
mode = 'train'
16+
17+
if args.task in ['circle_large', 'rmnist']:
18+
domain_split_index_list = np.arange(15, 26, 1)
19+
elif args.task == 'circle_hard':
20+
domain_split_index_list = np.arange(10, 16, 1)
21+
elif args.task == 'yearbook':
22+
domain_split_index_list = np.arange(1971, 2010, 1)
23+
else:
24+
raise ValueError
25+
26+
num_test_domain = 5
27+
28+
for domain_split_index in domain_split_index_list:
29+
with open('output/%s/stream/log_%s_%s_%d_%d.txt' %
30+
(args.task, model, args.seed, domain_split_index, num_test_domain), 'w') as f:
31+
subprocess.check_call(shlex.split(
32+
'python main_%s.py --model_name "%s" --gpu "%s" --seed %s --num_test_domain %d '
33+
'--domain_split_index %d --mode "%s"'
34+
% (args.task, model, args.gpu, args.seed, num_test_domain, domain_split_index, mode)), stdout=f)

datasets/.DS_Store

6 KB
Binary file not shown.

datasets/processed_data/.DS_Store

6 KB
Binary file not shown.
625 KB
Binary file not shown.
Binary file not shown.
938 KB
Binary file not shown.
Binary file not shown.
3 MB
Binary file not shown.

0 commit comments

Comments
 (0)