4a8d4b647b79b5d0cea572d5951395bf98ba97c8,pyemma/_base/serialization/serialization.py,SerializableMixIn,__setstate__,#SerializableMixIn#Any#,447
Before Change
self._model = model
// first set parameters of estimator, items in state which are not estimator parameters
names = self._get_param_names()
new_state = {key: state[key] for key in names if key in state}
self.set_params(**new_state)
if hasattr(self, "data_producer") and "data_producer" in state:
self.data_producer = state["data_producer"]
After Change
self._pyemma_version = state.pop("_pyemma_version", "!!!! UNKNOWN !!!!")
state.pop("class_tree_versions")
assert len(state) == 0, "unhandled attributes in state"
except AssertionError:
import pprint
logger.error("left-overs after setstate: %s", pprint.pformat(state))
except:
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances Project Name: markovmodel/PyEMMA
Commit Name: 4a8d4b647b79b5d0cea572d5951395bf98ba97c8
Time: 2017-11-28
Author: m.scherer@fu-berlin.de
File Name: pyemma/_base/serialization/serialization.py
Class Name: SerializableMixIn
Method Name: __setstate__
Project Name: IBM/adversarial-robustness-toolbox
Commit Name: 573314f4b6377764d40f9514cd89f835bf191ee4
Time: 2020-03-30
Author: beat.buesser@ie.ibm.com
File Name: art/attacks/evasion/adversarial_patch/adversarial_patch_numpy.py
Class Name: AdversarialPatchNumpy
Method Name: __init__
Project Name: IBM/adversarial-robustness-toolbox
Commit Name: 0822118b414e74037e251002d9c870a03d33190e
Time: 2020-03-30
Author: beat.buesser@ie.ibm.com
File Name: art/attacks/evasion/adversarial_patch/adversarial_patch_numpy.py
Class Name: AdversarialPatchNumpy
Method Name: __init__