Skip to content

Commit 35b559f

Browse files
Update colab_instructions.txt
1 parent f908f78 commit 35b559f

1 file changed

Lines changed: 11 additions & 15 deletions

File tree

colab_instructions.txt

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,27 @@
11
# Instructions for Running Phase 0 Experiments on Google Colab
22

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
76

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
1111

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
1713
# As implemented, this downloads the specific HDF5 files needed.
1814
!python scripts/download_d4rl.py
1915

20-
# Step 5: Convert Datasets to NPZ
16+
# Step 4: Convert Datasets to NPZ
2117
# This processes the HDF5 files into the format required by our training script.
2218
!python scripts/convert_d4rl.py
2319

24-
# Step 6: Generate Experiment Configurations
20+
# Step 5: Generate Experiment Configurations
2521
# Creates the 30 YAML files for the "Contract & Scope" phase.
2622
!python scripts/generate_phase0_configs.py
2723

28-
# Step 7: Run Experiments
24+
# Step 6: Run Experiments
2925
# This master script sequentially runs all experiments using the generated configs.
3026
# It skips experiments that are already complete (checked via metrics.csv).
3127
!python scripts/run_phase0_experiments.py

0 commit comments

Comments
 (0)