e709576eb39ac3ddb1f59d291178b7364bdf068e,autokeras/preprocessors/common.py,CategoricalToNumerical,get_config,#CategoricalToNumerical#,137

Before Change


            "column_types": self.column_types,
            "column_names": self.column_names,
            "layer": preprocessors.serialize(self.layer),
            "encoding_layers": preprocessors.serialize(self.layer.encoding_layers),
        }

    @classmethod

After Change


    def get_config(self):
        vocab = []
        for encoding_layer in self.encoding_layers:
            if encoding_layer is None:
                vocab.append([])
            else:
                vocab.append(encoding_layer.get_vocabulary())
        return {
            "column_types": self.column_types,
            "column_names": self.column_names,
            "layer": preprocessors.serialize(self.layer),
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


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


Project Name: MolSSI/QCEngine
Commit Name: a8ddee0935e0e1a4ac23de1fa233249e20a321ce
Time: 2020-10-11
Author: dgasmith@icloud.com
File Name: qcengine/programs/qcore.py
Class Name: QcoreHarness
Method Name: parse_output