5b8b1c9419fca922ae4e670d1d6c798f833f0268,autokeras/tasks/structured_data.py,SupervisedStructuredDataPipeline,__init__,#SupervisedStructuredDataPipeline#Any#Any#Any#,18

Before Change


        inputs = input_module.StructuredDataInput()
        inputs.column_types = column_types
        inputs.column_names = column_names
        if column_types:
            for column_type in column_types.values():
                if column_type not in ["categorical", "numerical"]:
                    raise ValueError(
                        "Column_types should be either "categorical" "
                        "or "numerical", but got {name}".format(name=column_type))
        if column_names and column_types:
            for column_name in column_types:
                if column_name not in column_names:
                    raise ValueError("Column_names and column_types are "

After Change


        inputs = input_module.StructuredDataInput()
        inputs.column_types = column_types
        inputs.column_names = column_names
        self.check(column_names, column_types)
        super().__init__(inputs=inputs,
                         outputs=outputs,
                         **kwargs)
        self._target_col_name = None
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: jhfjhfj1/autokeras
Commit Name: 5b8b1c9419fca922ae4e670d1d6c798f833f0268
Time: 2020-04-07
Author: abraham.g.sebastian@gmail.com
File Name: autokeras/tasks/structured_data.py
Class Name: SupervisedStructuredDataPipeline
Method Name: __init__


Project Name: pantsbuild/pants
Commit Name: 2b43d7613a7480c899a4125bfd0afbc8f7d7d75d
Time: 2015-08-20
Author: garrett.malmquist@gmail.com
File Name: src/python/pants/base/target.py
Class Name: Target
Method Name: __init__