-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathrun_rq4_xgb.sh
More file actions
18 lines (16 loc) · 894 Bytes
/
Copy pathrun_rq4_xgb.sh
File metadata and controls
18 lines (16 loc) · 894 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash
export PYTHONPATH=$PYTHONPATH:./
cuda=$1
log_folder="./xgb_logs"
datasets=("586" "589" "607" "616" "618" "620" "637" "airfoil" "amazon" "bikeshare" "credit_a" "credit_dafault" "fertility" "german" "hepatitis" "housing" "ionosphere" "lymphography" "megawatt1" "messidor_features" "pima" "spambase" "spectf" "winequality-red" "winequality-white")
for dataset in ${datasets[@]}
do
cur_time="`date +%Y-%m-%d-%H-%M-%S`"
log_file="$log_folder/$dataset-$cur_time.log"
log_command="tee -i $log_file"
python_command="python ./autolearn/feat_selection/nfo/iter_train.py --eval_model=XGB --data=$dataset --cuda=$cuda --hyper_config=default --feat_pool=$HOME/nfo/rq4_xgb/iter/$dataset --ckp_path=$HOME/nfo/rq4_xgb/ckps/$dataset"
echo "Current time: $cur_time"
echo "Run command: $python_command"
echo "Log info into file: $log_file"
eval "$python_command | $log_command"
done