This repository has been archived by the owner on Dec 4, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgenerate_data.py
41 lines (37 loc) · 1.77 KB
/
generate_data.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
import subprocess
#
# cmd = ['python', 'main.py', '--cuda', '--emsize', '256', '--nhid', '1024', '--dropout'
# , '0.5', '--epochs', '60', '--nlayers', '1', '--batch-size', '40', '--model', 'LSTM', '--save', 'LSTM-1layer.pt', '--data1', 'LSTM-1layer']
#
# process = subprocess.Popen(cmd, stdout=subprocess.PIPE)
# process.wait()
# for line in process.stdout:
# print(line)
#
# cmd = ['python', 'main.py', '--cuda', '--emsize', '256', '--nhid', '1024', '--dropout'
# , '0.5', '--epochs', '60', '--nlayers', '1', '--batch-size', '40', '--model', 'RAN', '--save', 'RAN-1layer.pt', '--data1', 'RAN-3layer']
#
# process = subprocess.Popen(cmd, stdout=subprocess.PIPE)
# process.wait()
# for line in process.stdout:
# print(line)
#
# cmd = ['python', 'main.py', '--cuda', '--emsize', '256', '--nhid', '1024', '--dropout'
# , '0.5', '--epochs', '60', '--nlayers', '2', '--batch-size', '40', '--model', 'LSTM', '--save', 'LSTM-2layer.pt', '--data1', 'LSTM-2layer']
#
# process = subprocess.Popen(cmd, stdout=subprocess.PIPE)
# process.wait()
# for line in process.stdout:
# print(line)
cmd = ['python', 'main.py', '--cuda', '--emsize', '256', '--nhid', '1024', '--dropout'
, '0.5', '--epochs', '28', '--nlayers', '3', '--batch-size', '40', '--model', 'LSTM', '--save', 'LSTM-3layer.pt', '--data1', 'LSTM-3layer']
process = subprocess.Popen(cmd, stdout=subprocess.PIPE)
process.wait()
for line in process.stdout:
print(line)
cmd = ['python', 'main.py', '--cuda', '--emsize', '256', '--nhid', '1024', '--dropout'
, '0.5', '--epochs', '60', '--nlayers', '5', '--batch-size', '40', '--model', 'LSTM', '--save', 'LSTM-5layer.pt', '--data1', 'LSTM-5layer']
process = subprocess.Popen(cmd, stdout=subprocess.PIPE)
process.wait()
for line in process.stdout:
print(line)