Commit 785c7a42 authored by Alexis Brenon's avatar Alexis Brenon
Browse files

Log cross-val loop

parent 030eb57e
......@@ -28,10 +28,16 @@ mkdir "${test_dir}"
for I in $(seq ${start_fold} ${end_fold})
do
mv "$(ls -1d "${train_dir}"/* | head -n ${I} | tail -n1)" "${test_dir}"
test_data="$(ls -1d "${train_dir}"/* | head -n ${I} | tail -n1)"
mv "${test_data}" "${test_dir}"
echo "$(date +%Y-%m-%dT%H:%M:%S) Running '${cmd}'" >> cross-val-log.txt
echo "Test data is : ${test_data}" >> cross-val-log.txt
${cmd}
echo "$(date +%Y-%m-%dT%H:%M:%S) End of command." >> cross-val-log.txt
mv -vn "${test_dir}"/* "${train_dir}"
done
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment