b80fb3bdcfeac64d91b7365be1196392e013dcb8,autokeras/utils.py,,extract_config,#Any#,95

Before Change


        name = type(layer).__name__
        config["type"].append(name)
        layer_config = layer.get_config()
        important_attr = {}
        for attr in LAYER_ATTR[name]:
            important_attr[attr] = layer_config[attr]
        config["config"].append(important_attr)
    return config


def ensure_dir(directory):

After Change



def extract_config(network):
    Return configuration of one model
    return network.get_config()


def ensure_dir(directory):
    Create directory if it does not exist
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: keras-team/autokeras
Commit Name: b80fb3bdcfeac64d91b7365be1196392e013dcb8
Time: 2018-01-05
Author: jhfjhfj1@gmail.com
File Name: autokeras/utils.py
Class Name:
Method Name: extract_config


Project Name: CyberReboot/poseidon
Commit Name: 6ab6c5c3ad477907751511b455216a0303ab1d73
Time: 2020-12-27
Author: clewis@iqt.org
File Name: src/core/core/main.py
Class Name:
Method Name: main