runAll_maxwell_custom.sh 978 B

1234567891011121314151617181920212223242526272829303132333435
  1. #! bin/bash
  2. # erase "results/models_comparisons.csv" file and write new header
  3. list="all, center, split"
  4. if [ -z "$1" ]
  5. then
  6. echo "No argument supplied"
  7. echo "Need argument from [${list}]"
  8. exit 1
  9. fi
  10. if [[ "$1" =~ ^(all|center|split)$ ]]; then
  11. echo "$1 is in the list"
  12. else
  13. echo "$1 is not in the list"
  14. fi
  15. data=$1
  16. erased=$2
  17. if [ "${erased}" == "Y" ]; then
  18. echo "Previous data file erased..."
  19. rm ${file_path}
  20. mkdir -p results
  21. touch ${file_path}
  22. # add of header
  23. echo 'model_name; vector_size; start; end; nb_zones; feature; mode; tran_size; val_size; test_size; train_pct_size; val_pct_size; test_pct_size; train_acc; val_acc; test_acc; all_acc; F1_train; recall_train; roc_auc_train; F1_val; recall_val; roc_auc_val; F1_test; recall_test; roc_auc_test; F1_all; recall_all; roc_auc_all;' >> ${file_path}
  24. fi
  25. size=26
  26. feature="filters_statistics"
  27. bash data_processing/generateAndTrain_maxwell_custom.sh ${size} ${feature} ${data}