TeacherPuffy
commited on
Update brute.sh
Browse files
brute.sh
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
#!/bin/bash
|
2 |
|
3 |
-
# Path to the CSV file containing layer counts and
|
4 |
CSV_FILE="experiments.csv"
|
5 |
|
6 |
# Path to the Python script
|
@@ -9,9 +9,9 @@ PYTHON_SCRIPT="train_mlp.py"
|
|
9 |
# Read the CSV file line by line
|
10 |
{
|
11 |
read # Skip the header line
|
12 |
-
while IFS=, read -r layer_count width
|
13 |
do
|
14 |
-
echo "Running experiment with layer_count=$layer_count and
|
15 |
-
python $PYTHON_SCRIPT --layer_count $layer_count --width $width
|
16 |
done
|
17 |
} < $CSV_FILE
|
|
|
1 |
#!/bin/bash
|
2 |
|
3 |
+
# Path to the CSV file containing layer counts, widths, and batch sizes
|
4 |
CSV_FILE="experiments.csv"
|
5 |
|
6 |
# Path to the Python script
|
|
|
9 |
# Read the CSV file line by line
|
10 |
{
|
11 |
read # Skip the header line
|
12 |
+
while IFS=, read -r layer_count width batch_size
|
13 |
do
|
14 |
+
echo "Running experiment with layer_count=$layer_count, width=$width, and batch_size=$batch_size"
|
15 |
+
python $PYTHON_SCRIPT --layer_count $layer_count --width $width --batch_size $batch_size
|
16 |
done
|
17 |
} < $CSV_FILE
|