
params = [
    ("dict(dim=250, dim_mlp=250)", "run1"),
    ("dict(dim=500, dim_mlp=500)", "run2"),
    ("dict(rank_n_approx=200)", "run3"),
    ("dict(rank_n_approx=500)", "run4"),
    ("dict(avg_word=False)", "run5")
    ]

for options, name in params:
    with open("{}.sh".format(name), "w") as script:
        log = "{}.log".format(name)
        print >>script, template.format(**locals())



params = [
    ("dict(dim=250, dim_mlp=250, prefix='model_run1_')", "run1"),
    ("dict(dim=500, dim_mlp=500, prefix='model_run2_')", "run2"),
    ("dict(rank_n_approx=200, prefix='model_run3_')", "run3"),
    ("dict(rank_n_approx=500, prefix='model_run4_')", "run4"),
    ("dict(avg_word=False, prefix='model_run5_')", "run5")
    ]

for options, name in params:
    with open("{}.sh".format(name), "w") as script:
        log = "{}.log".format(name)
        print >>script, template.format(**locals())


Add different prefixes for the experiments
Add different prefixes for the experiments

  
  params = [
-     ("dict(dim=250, dim_mlp=250)", "run1"),
+     ("dict(dim=250, dim_mlp=250, prefix='model_run1_')", "run1"),
-     ("dict(dim=500, dim_mlp=500)", "run2"),
+     ("dict(dim=500, dim_mlp=500, prefix='model_run2_')", "run2"),
-     ("dict(rank_n_approx=200)", "run3"),
+     ("dict(rank_n_approx=200, prefix='model_run3_')", "run3"),
-     ("dict(rank_n_approx=500)", "run4"),
+     ("dict(rank_n_approx=500, prefix='model_run4_')", "run4"),
-     ("dict(avg_word=False)", "run5")
+     ("dict(avg_word=False, prefix='model_run5_')", "run5")
      ]
  
  for options, name in params:
      with open("{}.sh".format(name), "w") as script:
          log = "{}.log".format(name)
          print >>script, template.format(**locals())
  
  
Add different prefixes for the experiments
## Code Before:

params = [
    ("dict(dim=250, dim_mlp=250)", "run1"),
    ("dict(dim=500, dim_mlp=500)", "run2"),
    ("dict(rank_n_approx=200)", "run3"),
    ("dict(rank_n_approx=500)", "run4"),
    ("dict(avg_word=False)", "run5")
    ]

for options, name in params:
    with open("{}.sh".format(name), "w") as script:
        log = "{}.log".format(name)
        print >>script, template.format(**locals())


## Instruction:
Add different prefixes for the experiments
## Code After:

params = [
    ("dict(dim=250, dim_mlp=250, prefix='model_run1_')", "run1"),
    ("dict(dim=500, dim_mlp=500, prefix='model_run2_')", "run2"),
    ("dict(rank_n_approx=200, prefix='model_run3_')", "run3"),
    ("dict(rank_n_approx=500, prefix='model_run4_')", "run4"),
    ("dict(avg_word=False, prefix='model_run5_')", "run5")
    ]

for options, name in params:
    with open("{}.sh".format(name), "w") as script:
        log = "{}.log".format(name)
        print >>script, template.format(**locals())

