|
1 | 1 | # Instructions for Running Phase 0 Experiments on Google Colab |
2 | 2 |
|
3 | | -# Step 1: Mount Google Drive |
4 | | -# Run this cell to access your files. |
5 | | -from google.colab import drive |
6 | | -drive.mount('/content/drive') |
| 3 | +# Step 1: Clone the Repository |
| 4 | +!git clone https://github.com/Vishal-sys-code/neuromorphic_decision_transformer.git |
| 5 | +%cd neuromorphic_decision_transformer |
7 | 6 |
|
8 | | -# Step 2: Navigate to Project Directory |
9 | | -# Change 'path/to/repo' to the actual location where you uploaded the code. |
10 | | -%cd /content/drive/MyDrive/path/to/neuromorphic_decision_transformer |
| 7 | +# Step 2: Install Dependencies |
| 8 | +# We install from requirements.txt and add other necessary packages not yet in requirements. |
| 9 | +!pip install -r requirements.txt |
| 10 | +!pip install h5py einops |
11 | 11 |
|
12 | | -# Step 3: Install Dependencies |
13 | | -# We need 'norse' for the spiking models and standard ML libraries. |
14 | | -!pip install numpy pandas torch pyyaml tqdm h5py gymnasium norse einops |
15 | | - |
16 | | -# Step 4: Download D4RL Datasets |
| 12 | +# Step 3: Download D4RL Datasets |
17 | 13 | # As implemented, this downloads the specific HDF5 files needed. |
18 | 14 | !python scripts/download_d4rl.py |
19 | 15 |
|
20 | | -# Step 5: Convert Datasets to NPZ |
| 16 | +# Step 4: Convert Datasets to NPZ |
21 | 17 | # This processes the HDF5 files into the format required by our training script. |
22 | 18 | !python scripts/convert_d4rl.py |
23 | 19 |
|
24 | | -# Step 6: Generate Experiment Configurations |
| 20 | +# Step 5: Generate Experiment Configurations |
25 | 21 | # Creates the 30 YAML files for the "Contract & Scope" phase. |
26 | 22 | !python scripts/generate_phase0_configs.py |
27 | 23 |
|
28 | | -# Step 7: Run Experiments |
| 24 | +# Step 6: Run Experiments |
29 | 25 | # This master script sequentially runs all experiments using the generated configs. |
30 | 26 | # It skips experiments that are already complete (checked via metrics.csv). |
31 | 27 | !python scripts/run_phase0_experiments.py |
|
0 commit comments