33573192e348ad5e1dfe188df6f3fa2a7a892372,pixyz/distributions/distributions.py,DistributionBase,get_params,#DistributionBase#,774

Before Change



    @lru_cache_for_sample_dict()
    def get_params(self, params_dict={}, **kwargs):
        params_dict, vars_dict = replace_dict_keys_split(params_dict, self.replace_params_dict)
        output_dict = self.forward(**vars_dict)

        output_dict.update(params_dict)

After Change


    @lru_cache_for_sample_dict()
    def get_params(self, params_dict={}, **kwargs):
        replaced_params_dict = {}
        for key, value in params_dict.items():
            if key in self.replace_params_dict:
                for replaced_key in self.replace_params_dict[key]:
                    replaced_params_dict[replaced_key] = value

        vars_dict = {key: value for key, value in params_dict.items() if key not in self.replace_params_dict}

        output_dict = self.forward(**vars_dict)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 5

Instances


Project Name: masa-su/pixyz
Commit Name: 33573192e348ad5e1dfe188df6f3fa2a7a892372
Time: 2020-10-05
Author: kaneko@weblab.t.u-tokyo.ac.jp
File Name: pixyz/distributions/distributions.py
Class Name: DistributionBase
Method Name: get_params


Project Name: D2KLab/entity2rec
Commit Name: b0848e1af4b1cf9c4898d549de19e81b167043b2
Time: 2018-07-17
Author: enricopalumbo0@gmail.com
File Name: entity2rec/evaluator.py
Class Name: Evaluator
Method Name: evaluate


Project Name: neurodsp-tools/neurodsp
Commit Name: 2bafab6880ec76889bd6cab6233a1ea9431f6b8e
Time: 2019-04-03
Author: tdonoghue@ucsd.edu
File Name: neurodsp/tests/test_filt_fir.py
Class Name:
Method Name: test_design_fir_filter


Project Name: cesium-ml/cesium
Commit Name: e547a82c24b37c157bc9b40d2724a7b1fd0a7b0f
Time: 2017-04-17
Author: brettnaul@gmail.com
File Name: cesium/featurize.py
Class Name:
Method Name: save_featureset


Project Name: DistrictDataLabs/yellowbrick
Commit Name: aa1a4d85f30db26a7ef9d3c7dc7692bb00f7a5e5
Time: 2016-10-13
Author: benjamin@bengfort.com
File Name: examples/download.py
Class Name:
Method Name: download_all