1aa2ab0590edb3e6e876d44ea0aeffc1c8f6d838,rl_coach/base_parameters.py,InputEmbedderParameters,__init__,#InputEmbedderParameters#Any#Any#Any#Any#Any#Any#Any#Any#,224

Before Change


        self.dropout = dropout

        if input_rescaling is None:
            input_rescaling = {"image": 255.0, "vector": 1.0}
        if input_offset is None:
            input_offset = {"image": 0.0, "vector": 0.0}

        self.input_rescaling = input_rescaling
        self.input_offset = input_offset
        self.input_clipping = input_clipping
        self.name = name

After Change


            if "tensorflow." not in str(v.__class__):
                parameters[k] = unfold_dict_or_list(v)
        elif "tensorflow." in str(v.__class__):
            parameters[k] = v
        elif hasattr(v, "__dict__"):
            sub_params = v.__dict__
            if "__objclass__" not in sub_params.keys():
                try:
                    parameters[k] = unfold_dict_or_list(sub_params)
                except RecursionError:
                    parameters[k] = sub_params
                parameters[k]["__class__"] = v.__class__.__name__
            else:
                // unfolding this type of object will result in infinite recursion
                parameters[k] = sub_params
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: NervanaSystems/coach
Commit Name: 1aa2ab0590edb3e6e876d44ea0aeffc1c8f6d838
Time: 2018-08-27
Author: gal.leibovich@intel.com
File Name: rl_coach/base_parameters.py
Class Name: InputEmbedderParameters
Method Name: __init__


Project Name: robertmartin8/PyPortfolioOpt
Commit Name: a6b8df3bcbc1f4242ac1e0fb94b8889f34cec685
Time: 2020-03-14
Author: martin.robertandrew@gmail.com
File Name: pypfopt/base_optimizer.py
Class Name: BaseScipyOptimizer
Method Name: __init__


Project Name: castorini/honk
Commit Name: bec15911e08fe5fe3c705c24a23cfd926cc0da95
Time: 2017-10-05
Author: tang.raphael@gmail.com
File Name: service.py
Class Name: LabelService
Method Name: label