add parents true
"\n",
"for uids, image, prediction in zip(hold_out_uids, hold_out_images, hold_out_predictions):\n",
" studyset_uid_directory = output_directory.joinpath(uids[0])\n",
- " studyset_uid_directory.mkdir(exist_ok=True)\n",
+ " studyset_uid_directory.mkdir(exist_ok=True, parents=True)\n",
" \n",
" scaled_image = _scale_images(image)\n",
" scaled_prediction = _scale_images(prediction)\n",
