I have a program which I want to create N instances of, where the only thing that varies is some hyper parameter $\beta$.
In my mind I know I could do this with a bash script, where I call the program N times, each with a different value for $\beta$, and send each one to the background so that the next one can run:
#!/bin/bash
nohup python3 test.py 1 >> res.txt &
nohup python3 test.py 2 >> res.txt &
nohup python3 test.py 3 >> res.txt &
nohup python3 test.py 4 >> res.txt &
Maybe I can also do this directly in python, in a cleaner manner. My question is, from your experience, what is the cleanest way of achieving this? Feel free to ask any detail I might have missed.