# This experiment is attempting to find a good value of lambda for the Penalize-if-nonzero regularization
import cluster

j, expDir = cluster.getEnv()

Lambda = 3e-4
while Lambda < 3e3:
    pre = 'ae' + str(Lambda)
    j.setArgs('%s/train.py --autoencoder autoencoder --path %s --outputPrefix %s --Lambda %f'%(expDir,expDir,pre,Lambda))
    j.setOutputPrefix('%s/results/%s'%(expDir,pre))
    j.submit()

    Lambda *= 10

609a77e7f2f2a1c7f571d5240bd59bee2ec82893
<mask token>

<mask token>
while Lambda < 3000.0:
    pre = 'ae' + str(Lambda)
    j.setArgs(
        '%s/train.py --autoencoder autoencoder --path %s --outputPrefix %s --Lambda %f'
         % (expDir, expDir, pre, Lambda))
    j.setOutputPrefix('%s/results/%s' % (expDir, pre))
    j.submit()
    Lambda *= 10

<mask token>
j, expDir = cluster.getEnv()
Lambda = 0.0003
while Lambda < 3000.0:
    pre = 'ae' + str(Lambda)
    j.setArgs(
        '%s/train.py --autoencoder autoencoder --path %s --outputPrefix %s --Lambda %f'
         % (expDir, expDir, pre, Lambda))
    j.setOutputPrefix('%s/results/%s' % (expDir, pre))
    j.submit()
    Lambda *= 10

import cluster
j, expDir = cluster.getEnv()
Lambda = 0.0003
while Lambda < 3000.0:
    pre = 'ae' + str(Lambda)
    j.setArgs(
        '%s/train.py --autoencoder autoencoder --path %s --outputPrefix %s --Lambda %f'
         % (expDir, expDir, pre, Lambda))
    j.setOutputPrefix('%s/results/%s' % (expDir, pre))
    j.submit()
    Lambda *= 10

# This experiment is attempting to find a good value of lambda for the Penalize-if-nonzero regularization
import cluster

j, expDir = cluster.getEnv()

Lambda = 3e-4
while Lambda < 3e3:
    pre = 'ae' + str(Lambda)
    j.setArgs('%s/train.py --autoencoder autoencoder --path %s --outputPrefix %s --Lambda %f'%(expDir,expDir,pre,Lambda))
    j.setOutputPrefix('%s/results/%s'%(expDir,pre))
    j.submit()

    Lambda *= 10
