xautodl/scripts/trade/baseline.sh

26 lines
559 B
Bash
Raw Normal View History

2021-03-11 14:07:08 +01:00
#!/bin/bash
2021-03-14 08:52:04 +01:00
#
2021-03-11 14:07:08 +01:00
# bash scripts/trade/baseline.sh 0 csi300
2021-03-12 03:46:39 +01:00
# bash scripts/trade/baseline.sh 1 csi100
2021-03-14 08:52:04 +01:00
# bash scripts/trade/baseline.sh 1 all
#
2021-03-11 14:07:08 +01:00
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
2021-04-02 09:40:26 +02:00
# algorithms="NAIVE-V1 NAIVE-V2 MLP GRU LSTM ALSTM XGBoost LightGBM SFM TabNet DoubleE"
algorithms="MLP GRU LSTM ALSTM XGBoost LightGBM SFM TabNet DoubleE"
2021-03-11 14:07:08 +01:00
for alg in ${algorithms}
do
python exps/trading/baselines.py --alg ${alg} --gpu ${gpu} --market ${market}
done