Add scripts for Q

This commit is contained in:
D-X-Y
2021-03-11 13:07:08 +00:00
parent 58907a2387
commit 9f7eca0e58
5 changed files with 28 additions and 5 deletions

22
scripts/trade/baseline.sh Normal file
View File

@@ -0,0 +1,22 @@
#!/bin/bash
# bash scripts/trade/baseline.sh 0 csi300
set -e
echo script name: $0
echo $# arguments
if [ "$#" -ne 2 ] ;then
echo "Input illegal number of parameters " $#
exit 1
fi
gpu=$1
market=$2
algorithms="MLP GRU LSTM ALSTM XGBoost LightGBM"
for alg in ${algorithms}
do
python exps/trading/baselines.py --alg ${alg} --gpu ${gpu} --market ${market}
done