MCPcopy
hub / github.com/hyperopt/hyperopt / __setstate__

Method __setstate__

hyperopt/pyll/base.py:249–253  ·  view source on GitHub ↗
(self, state)

Source from the content-addressed store, hash-verified

247 assert all(isinstance(k, str) for k, v in named_args)
248
249 def __setstate__(self, state):
250 self.__dict__.update(state)
251 # -- On deserialization, update scope if need be.
252 if self.define_params:
253 scope.define_if_new(**self.define_params)
254
255 def eval(self, memo=None):
256 """

Callers

nothing calls this directly

Calls 2

define_if_newMethod · 0.80
updateMethod · 0.45

Tested by

no test coverage detected