-
Notifications
You must be signed in to change notification settings - Fork 2
/
batch_TOVAE_train.py
30 lines (29 loc) · 1.4 KB
/
batch_TOVAE_train.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
#!/usr/bin/env python2
# -*- coding: utf-8 -*-
'''
Code for running batch models of dictionary VAE
'''
import numpy as np
import os
c_samp_vals = [1]
batch_size = [32]
recon_weight = [1.0]
post_l1_weight = [1.0]
post_TO_weight = [1.0]
prior_weight = [1.0]
prior_l1_weight = [0.1]
post_cInfer_weight = [0.000001]
prior_cInfer_weight = [0.000001,0.000005]
gamma = [0.0]
for c_num in c_samp_vals:
for batch_num in batch_size:
for z_idx in zeta:
for l1_idx in post_l1_weight:
for TO_idx in post_TO_weight:
for prior_idx in prior_weight:
for prior_l1_idx in prior_l1_weight:
for post_cInfer_idx in post_cInfer_weight:
for prior_cInfer_idx in prior_cInfer_weight:
for gamma_idx in gamma:
for recon_idx in recon_weight:
os.system("python VAELLS.py --batch_size " + str(batch_num) + " --c_samp " + str(c_num) + " --recon_weight " + str(recon_idx) + " --prior_weight " + str(prior_idx) + " --post_TO_weight " + str(TO_idx) + " --post_l1_weight " + str(l1_idx) + " --prior_l1_weight " + str(prior_l1_idx) + " --post_cInfer_weight " + str(post_cInfer_idx) + " --prior_cInfer_weight " + str(prior_cInfer_idx) +" --gamma " + str(gamma_idx))