8b6e3d42daeeada6dc929620288a2847a795e6e1,autokeras/preprocessors/common.py,CategoricalToNumerical,from_config,#Any#Any#,145

Before Change


    @classmethod
    def from_config(cls, config):
        config["layer"] = preprocessors.deserialize(config["layer"])
        return super().from_config(config)

After Change



    @classmethod
    def from_config(cls, config):
        init_config = {
            "column_types": config["column_types"],
            "column_names": config["column_names"],
        }
        obj = cls(**init_config)
        obj.layer = preprocessors.deserialize(config["layer"])
        return obj
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: keras-team/autokeras
Commit Name: 8b6e3d42daeeada6dc929620288a2847a795e6e1
Time: 2020-10-30
Author: abraham.g.sebastian@gmail.com
File Name: autokeras/preprocessors/common.py
Class Name: CategoricalToNumerical
Method Name: from_config


Project Name: keras-team/keras
Commit Name: 6c1e3b267ae8953f919fceff407e352bd2e2e453
Time: 2021-03-11
Author: scottzhu@google.com
File Name: keras/engine/training.py
Class Name: Model
Method Name: from_config