Set-up run parameters
This step involves modifying the AutoLFADS or RADICaL python script to link to your VMs and bucket. Note that prior to this step, cloud infrastructure must be created already, the code must be cloned inside the server VM, the user must be added to docker group, and the bucket must be created and data uploaded to it.
First, make sure you are SSHed back into your server VM.
Then, (inside the SSH window), navigate to the
autolfads/pbt_opt directory with the following command.
Next, we want to edit
pbt_script_multiVM.py, the AutoLFADS run script, to link it to our data. Still inside the SSH window and inside the
autolfads/pbt_opt directory, open
pbt_script_multiVM.py in a text editor of your choice. In this tutorial, we will do so in nano with the following command:
A cheat sheet on using nano is available here.
Now, you should see at the top something that looks like the following:
First we need to set bucket_name, data_path, and run_path to point towards our bucket.
Bucket_name refers to the name of the bucket we created, data_path to the folder where we hold our data, and run_path to the folder where our run output will be.
Name can be set to any string we want our run to be called.
In this tutorial, we'll modify these to be the following:
bucket_name = 'autolfadsbucket'
data_path = 'data'
run_path = 'runs'
name = 'tut_run'
These changes to the script are necessary to link AutoLFADS or RADICaL to your data. However, there is also a variety of HPs in this script whose intial values, range of variance, and manner of pertubation by PBT can be edited. For information on explaining the various HPs and how to edit their initial values and ranges, go to the modifying HPs section in the Additional Information section.
You can save your changes and exit your text editor.