ma_cisco_malware/run.sh

46 lines
1.2 KiB
Bash

#!/usr/bin/env bash
RESDIR=$1
mkdir -p /tmp/rk/RESDIR
DATADIR=$2
for output in client both
do
for depth in small
do
for mtype in inter final
do
python main.py --mode train \
--train ${DATADIR}/currentData.csv \
--model ${RESDIR}/${output}_${depth}_${mtype} \
--epochs 50 \
--embd 64 \
--hidden_char_dims 128 \
--domain_embd 32 \
--batch 256 \
--balanced_weights \
--model_output ${output} \
--type ${mtype} \
--depth ${depth}
done
done
done
for depth in small
do
python main.py --mode train \
--train ${DATADIR}/currentData.csv \
--model ${RESDIR}/both_${depth}_inter \
--epochs 50 \
--embd 64 \
--hidden_char_dims 128 \
--domain_embd 32 \
--batch 256 \
--balanced_weights \
--model_output both \
--type staggered \
--depth ${depth}
done