d58f782c5ed1e6e21035ec23012b54720f293503,pyemma/_base/estimator.py,Estimator,__my_setstate__,#Estimator#Any#,442
Before Change
def __my_setstate__(self, state):
if state:
params = {k: state[k] for k in self._get_param_names() if k in state}
if params:
for k in params:
del state[k]
self.set_params(**params)
After Change
valid_parameters = list()
for c in filter(lambda c: hasattr(c, "_get_param_names"), self.__class__.__mro__):
valid_parameters.extend(c._get_param_names())
for param in valid_parameters:
if param in state:
setattr(self, param, state.pop(param))
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
Instances
Project Name: markovmodel/PyEMMA
Commit Name: d58f782c5ed1e6e21035ec23012b54720f293503
Time: 2017-12-19
Author: m.scherer@fu-berlin.de
File Name: pyemma/_base/estimator.py
Class Name: Estimator
Method Name: __my_setstate__
Project Name: Scitator/catalyst
Commit Name: 45f7651644f05b413ecd9366e7014edc7f0b8a24
Time: 2019-09-06
Author: scitator@gmail.com
File Name: catalyst/contrib/modules/lama.py
Class Name: LamaPooling
Method Name: __init__