I’m getting an error trying to save the processed kaggle dataset to file. I’m running the Tabular model Colab notebook.
gives me the error:
AttributeError Traceback (most recent call last)
----> 2 (path/‘to.pkl’).save(to)
AttributeError: ‘PosixPath’ object has no attribute ‘save’
Path is defined thus: path = Path(’/content/drive/MyDrive/Courses/FASTAI/bluebook’)
which makes path an object of type pathlib.PosixPath
Potentially relevant: I had to change the original path definition from path = URLs.path(‘bluebook’) because the original dir had a mkdir error (/root/.fastai/.archive/bluebook). But in any case the output of URLs.path() is also a pathlib.PosixPath, so I’m not sure where the error is?
Thanks for any leads - would be nice to save intermediate files!