#!/usr/bin/env bash
# usage: run.sh <log-name> <run_ensemble.py args...>   (GPU)
cd "$(dirname "$0")"; mkdir -p results; name=$1; shift
/root/miniconda3/bin/python -u run_ensemble.py "$@" 2>&1 | grep --line-buffered -v "^warning" | tee results/$name.log
echo "EXIT CODE ${PIPESTATUS[0]}" | tee -a results/$name.log
