nas.sh 835 Bytes
Newer Older
Yuge Zhang's avatar
Yuge Zhang committed
1
2
3
4
5
6
7
8
#!/bin/bash
set -e
CWD=${PWD}

echo ""
echo "===========================Testing: NAS==========================="
EXAMPLE_DIR=${CWD}/../examples/nas

9
10
11
echo "testing mnist..."
cd $EXAMPLE_DIR/multi-trial/mnist
python3 search.py
Yuge Zhang's avatar
Yuge Zhang committed
12
13

echo "testing darts..."
SparkSnail's avatar
SparkSnail committed
14
cd $EXAMPLE_DIR/oneshot/darts
Yuge Zhang's avatar
Yuge Zhang committed
15
python3 search.py --epochs 1 --channels 2 --layers 4
16
python3 retrain.py --arc-checkpoint ./checkpoint.json --layers 4 --epochs 1
Yuge Zhang's avatar
Yuge Zhang committed
17
18

echo "testing enas..."
SparkSnail's avatar
SparkSnail committed
19
cd $EXAMPLE_DIR/oneshot/enas
Yuge Zhang's avatar
Yuge Zhang committed
20
21
22
python3 search.py --search-for macro --epochs 1
python3 search.py --search-for micro --epochs 1

chicm-ms's avatar
chicm-ms committed
23
24
25
26
#disabled for now
#echo "testing naive..."
#cd $EXAMPLE_DIR/naive
#python3 train.py
Yuge Zhang's avatar
Yuge Zhang committed
27

QuanluZhang's avatar
QuanluZhang committed
28
29
30
#echo "testing pdarts..."
#cd $EXAMPLE_DIR/legacy/pdarts
#python3 search.py --epochs 1 --channels 4 --nodes 2 --log-frequency 10 --add_layers 0 --add_layers 1 --dropped_ops 3 --dropped_ops 3