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
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: keras-team/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: polyaxon/polyaxon
Commit Name: ae075f46a389745e46ab14235facbe4809b613b6
Time: 2019-05-16
Author: mouradmourafiq@gmail.com
File Name: polyaxon_cli/managers/deploy.py
Class Name: DeployManager
Method Name: check_for_kubernetes