update baseline NAS algos
This commit is contained in:
		
							
								
								
									
										37
									
								
								scripts-search/algos/BOHB.sh
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										37
									
								
								scripts-search/algos/BOHB.sh
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,37 @@ | ||||
| #!/bin/bash | ||||
| # bash ./scripts-search/algos/BOHB.sh -1 | ||||
| echo script name: $0 | ||||
| echo $# arguments | ||||
| if [ "$#" -ne 1 ] ;then | ||||
|   echo "Input illegal number of parameters " $# | ||||
|   echo "Need 1 parameters for seed" | ||||
|   exit 1 | ||||
| fi | ||||
| if [ "$TORCH_HOME" = "" ]; then | ||||
|   echo "Must set TORCH_HOME envoriment variable for data dir saving" | ||||
|   exit 1 | ||||
| else | ||||
|   echo "TORCH_HOME : $TORCH_HOME" | ||||
| fi | ||||
|  | ||||
| dataset=cifar10 | ||||
| seed=$1 | ||||
| channel=16 | ||||
| num_cells=5 | ||||
| max_nodes=4 | ||||
|  | ||||
| if [ "$dataset" == "cifar10" ] || [ "$dataset" == "cifar100" ]; then | ||||
|   data_path="$TORCH_HOME/cifar.python" | ||||
| else | ||||
|   data_path="$TORCH_HOME/cifar.python/ImageNet16" | ||||
| fi | ||||
|  | ||||
| save_dir=./output/cell-search-tiny/BOHB-${dataset} | ||||
|  | ||||
| OMP_NUM_THREADS=4 python ./exps/algos/BOHB.py \ | ||||
| 	--save_dir ${save_dir} --max_nodes ${max_nodes} --channel ${channel} --num_cells ${num_cells} \ | ||||
| 	--dataset ${dataset} --data_path ${data_path} \ | ||||
| 	--search_space_name aa-nas \ | ||||
| 	--arch_nas_dataset ./output/AA-NAS-BENCH-4/simplifies/C16-N5-final-infos.pth \ | ||||
| 	--n_iters 6 --num_samples 3 \ | ||||
| 	--workers 4 --print_freq 200 --rand_seed ${seed} | ||||
							
								
								
									
										38
									
								
								scripts-search/algos/R-EA.sh
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										38
									
								
								scripts-search/algos/R-EA.sh
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,38 @@ | ||||
| #!/bin/bash | ||||
| # Regularized Evolution for Image Classifier Architecture Search, AAAI 2019 | ||||
| # bash ./scripts-search/algos/R-EA.sh -1 | ||||
| echo script name: $0 | ||||
| echo $# arguments | ||||
| if [ "$#" -ne 1 ] ;then | ||||
|   echo "Input illegal number of parameters " $# | ||||
|   echo "Need 1 parameters for seed" | ||||
|   exit 1 | ||||
| fi | ||||
| if [ "$TORCH_HOME" = "" ]; then | ||||
|   echo "Must set TORCH_HOME envoriment variable for data dir saving" | ||||
|   exit 1 | ||||
| else | ||||
|   echo "TORCH_HOME : $TORCH_HOME" | ||||
| fi | ||||
|  | ||||
| dataset=cifar10 | ||||
| seed=$1 | ||||
| channel=16 | ||||
| num_cells=5 | ||||
| max_nodes=4 | ||||
|  | ||||
| if [ "$dataset" == "cifar10" ] || [ "$dataset" == "cifar100" ]; then | ||||
|   data_path="$TORCH_HOME/cifar.python" | ||||
| else | ||||
|   data_path="$TORCH_HOME/cifar.python/ImageNet16" | ||||
| fi | ||||
|  | ||||
| save_dir=./output/cell-search-tiny/R-EA-${dataset} | ||||
|  | ||||
| OMP_NUM_THREADS=4 python ./exps/algos/R_EA.py \ | ||||
| 	--save_dir ${save_dir} --max_nodes ${max_nodes} --channel ${channel} --num_cells ${num_cells} \ | ||||
| 	--dataset ${dataset} --data_path ${data_path} \ | ||||
| 	--search_space_name aa-nas \ | ||||
| 	--arch_nas_dataset ./output/AA-NAS-BENCH-4/simplifies/C16-N5-final-infos.pth \ | ||||
| 	--ea_cycles 30 --ea_population 10 --ea_sample_size 3 --ea_fast_by_api 1 \ | ||||
| 	--workers 4 --print_freq 200 --rand_seed ${seed} | ||||
							
								
								
									
										37
									
								
								scripts-search/algos/REINFORCE.sh
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										37
									
								
								scripts-search/algos/REINFORCE.sh
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,37 @@ | ||||
| #!/bin/bash | ||||
| # bash ./scripts-search/algos/REINFORCE.sh -1 | ||||
| echo script name: $0 | ||||
| echo $# arguments | ||||
| if [ "$#" -ne 1 ] ;then | ||||
|   echo "Input illegal number of parameters " $# | ||||
|   echo "Need 1 parameters for seed" | ||||
|   exit 1 | ||||
| fi | ||||
| if [ "$TORCH_HOME" = "" ]; then | ||||
|   echo "Must set TORCH_HOME envoriment variable for data dir saving" | ||||
|   exit 1 | ||||
| else | ||||
|   echo "TORCH_HOME : $TORCH_HOME" | ||||
| fi | ||||
|  | ||||
| dataset=cifar10 | ||||
| seed=$1 | ||||
| channel=16 | ||||
| num_cells=5 | ||||
| max_nodes=4 | ||||
|  | ||||
| if [ "$dataset" == "cifar10" ] || [ "$dataset" == "cifar100" ]; then | ||||
|   data_path="$TORCH_HOME/cifar.python" | ||||
| else | ||||
|   data_path="$TORCH_HOME/cifar.python/ImageNet16" | ||||
| fi | ||||
|  | ||||
| save_dir=./output/cell-search-tiny/REINFORCE-${dataset} | ||||
|  | ||||
| OMP_NUM_THREADS=4 python ./exps/algos/reinforce.py \ | ||||
| 	--save_dir ${save_dir} --max_nodes ${max_nodes} --channel ${channel} --num_cells ${num_cells} \ | ||||
| 	--dataset ${dataset} --data_path ${data_path} \ | ||||
| 	--search_space_name aa-nas \ | ||||
| 	--arch_nas_dataset ./output/AA-NAS-BENCH-4/simplifies/C16-N5-final-infos.pth \ | ||||
| 	--learning_rate 0.001 --RL_steps 100 --EMA_momentum 0.9 \ | ||||
| 	--workers 4 --print_freq 200 --rand_seed ${seed} | ||||
							
								
								
									
										37
									
								
								scripts-search/algos/Random.sh
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										37
									
								
								scripts-search/algos/Random.sh
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,37 @@ | ||||
| #!/bin/bash | ||||
| # bash ./scripts-search/algos/Random.sh -1 | ||||
| echo script name: $0 | ||||
| echo $# arguments | ||||
| if [ "$#" -ne 1 ] ;then | ||||
|   echo "Input illegal number of parameters " $# | ||||
|   echo "Need 1 parameters for seed" | ||||
|   exit 1 | ||||
| fi | ||||
| if [ "$TORCH_HOME" = "" ]; then | ||||
|   echo "Must set TORCH_HOME envoriment variable for data dir saving" | ||||
|   exit 1 | ||||
| else | ||||
|   echo "TORCH_HOME : $TORCH_HOME" | ||||
| fi | ||||
|  | ||||
| dataset=cifar10 | ||||
| seed=$1 | ||||
| channel=16 | ||||
| num_cells=5 | ||||
| max_nodes=4 | ||||
|  | ||||
| if [ "$dataset" == "cifar10" ] || [ "$dataset" == "cifar100" ]; then | ||||
|   data_path="$TORCH_HOME/cifar.python" | ||||
| else | ||||
|   data_path="$TORCH_HOME/cifar.python/ImageNet16" | ||||
| fi | ||||
|  | ||||
| save_dir=./output/cell-search-tiny/RAND-${dataset} | ||||
|  | ||||
| OMP_NUM_THREADS=4 python ./exps/algos/RANDOM.py \ | ||||
| 	--save_dir ${save_dir} --max_nodes ${max_nodes} --channel ${channel} --num_cells ${num_cells} \ | ||||
| 	--dataset ${dataset} --data_path ${data_path} \ | ||||
| 	--search_space_name aa-nas \ | ||||
| 	--arch_nas_dataset ./output/AA-NAS-BENCH-4/simplifies/C16-N5-final-infos.pth \ | ||||
| 	--random_num 100 \ | ||||
| 	--workers 4 --print_freq 200 --rand_seed ${seed} | ||||
		Reference in New Issue
	
	Block a user