4cf94b4f157424e41be9cd4f45a9d0b3cf1bbfe5,dlpy/layers.py,Layer,to_model_params,#Layer#,63

Before Change


        dict

        """
        if self.config["type"].lower() == "input":
            return dict(name=self.name, layer=self.config)
        else:
            return dict(name=self.name, layer=self.config,

After Change



        """
        new_params = {}
        for key, value in six.iteritems(self.config):
            if value is not None:
                new_key = key.replace("_", "")
                if isinstance(new_key, str):
                    new_key = new_key.lower()
                if isinstance(value, str):
                    value = value.lower()
                new_params[new_key] = value
        new_params["type"] = self.type
        if self.type == "input":
            return dict(name=self.name, layer=new_params)
        else:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: sassoftware/python-dlpy
Commit Name: 4cf94b4f157424e41be9cd4f45a9d0b3cf1bbfe5
Time: 2018-10-25
Author: Ethem.Can@sas.com
File Name: dlpy/layers.py
Class Name: Layer
Method Name: to_model_params


Project Name: googledatalab/pydatalab
Commit Name: 5b48f9a9c097d26d395873044ceaa1a0b886682a
Time: 2017-06-14
Author: brandondutra@google.com
File Name: solutionbox/code_free_ml/mltoolbox/code_free_ml/analyze.py
Class Name:
Method Name: run_local_analysis


Project Name: googledatalab/pydatalab
Commit Name: 5b48f9a9c097d26d395873044ceaa1a0b886682a
Time: 2017-06-14
Author: brandondutra@google.com
File Name: solutionbox/code_free_ml/mltoolbox/code_free_ml/analyze.py
Class Name:
Method Name: run_cloud_analysis