MCPcopy Create free account
hub / github.com/SeldonIO/seldon-server / __getstate__

Method __getstate__

python/seldon/vw.py:66–75  ·  view source on GitHub ↗

Remove things that should not be pickled

(self)

Source from the content-addressed store, hash-verified

64 self.model_saved = False
65
66 def __getstate__(self):
67 """
68 Remove things that should not be pickled
69 """
70 result = self.__dict__.copy()
71 del result['model_saved']
72 del result['vw']
73 del result['tailq']
74 del result['raw_predictions_thread_running']
75 return result
76
77 def __setstate__(self, dict):
78 """

Callers

nothing calls this directly

Calls 1

copyMethod · 0.80

Tested by

no test coverage detected