4a8d4b647b79b5d0cea572d5951395bf98ba97c8,pyemma/_base/serialization/serialization.py,SerializableMixIn,__getstate__,#SerializableMixIn#,392

Before Change



        // handle special cases Estimator and Model, just use their parameters.
        if hasattr(self, "get_params"):
            res.update(self.get_params())
            // remember if it has been estimated.
            res["_estimated"] = self._estimated
            try:

After Change


                inc = self._get_state_of_serializeable_fields(klass)
                // get estimation parameter for all classes in the hierarchy too.
                if issubclass(klass, BaseEstimator):
                    up = {k: getattr(self, k, None) for k in klass._get_param_names()}
                    inc.update(up)
                res.update(inc)
Italian Trulli
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: __getstate__


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_getstate__


Project Name: NeuromorphicProcessorProject/snn_toolbox
Commit Name: 64ff88344402771c2735dbcacf7010acfeb55b0a
Time: 2016-10-09
Author: bodo.rueckauer@gmail.com
File Name: snntoolbox/model_libs/lasagne_input_lib.py
Class Name:
Method Name: extract