Hello,
I’m getting an error trying to save the processed kaggle dataset to file. I’m running the Tabular model Colab notebook.
Running
(path/‘to.pkl’).save(to)
gives me the error:
AttributeError Traceback (most recent call last)
in ()
1
----> 2 (path/‘to.pkl’).save(to)
3 type(path)
4 type(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!
Shraddha