My goal is to run it in an RMarkdown document, with some code chunks as R (for the data munging) and some as Python (for the fastai/pytorch code itself).
It works well until I run the
learn.fit() function -- I get the error
ValueError: I/O operation on closed file.
Does anyone know what might be causing this?