autodl-projects/scripts/trade/tsf.sh

30 lines
536 B
Bash
Raw Permalink Normal View History

2021-03-26 04:41:22 +01:00
#!/bin/bash
#
2021-03-30 11:02:41 +02:00
# bash scripts/trade/tsf.sh 0 csi300 3 0_0
# bash scripts/trade/tsf.sh 0 csi300 3 0.1_0
# bash scripts/trade/tsf.sh 1 csi100 3 0.2_0
# bash scripts/trade/tsf.sh 1 all 3 0.1_0
2021-03-26 04:41:22 +01:00
#
set -e
echo script name: $0
echo $# arguments
2021-03-28 09:34:21 +02:00
if [ "$#" -ne 4 ] ;then
2021-03-26 04:41:22 +01:00
echo "Input illegal number of parameters " $#
exit 1
fi
gpu=$1
market=$2
depth=$3
2021-03-28 09:34:21 +02:00
drop=$4
2021-03-26 04:41:22 +01:00
channels="6 12 24 32 48 64"
for channel in ${channels}
do
2021-03-30 11:02:41 +02:00
python exps/trading/baselines.py --alg TSF-${depth}x${channel}-drop${drop} --gpu ${gpu} --market ${market}
2021-03-26 04:41:22 +01:00
done