In the notebook
08_data_block.ipynb in Part 2 of the 2019 Deep Learning course, there is a __setstate __ defined under the Split_func function(which stores the training and validations sets after they have been split) and it is defined as
def __setstate__(self,data:Any): self.__dict__.update(data)
what does __setstate __ mean and do? And thus, what does __getstate __ mean and do?
I tried googling, turns out it has something to do with pickle. Though i can’t understand much from the internet. Can someone please explain it to me? Which also brings me to the question…what is pickle really? Does it have any really good characteristics?