bash scripts for training and test