Teradata Package for Python Function Reference | 20.00 - generate_custom_config - Teradata Package for Python - Look here for syntax, methods and examples for the functions included in the Teradata Package for Python.
Teradata® Package for Python Function Reference - 20.00
- Deployment
- VantageCloud
- VantageCore
- Edition
- Enterprise
- IntelliFlex
- VMware
- Product
- Teradata Package for Python
- Release Number
- 20.00.00.03
- Published
- December 2024
- ft:locale
- en-US
- ft:lastEdition
- 2024-12-19
- dita:id
- TeradataPython_FxRef_Enterprise_2000
- Product Category
- Teradata Vantage
- teradataml.automl.__init__.AutoRegressor.generate_custom_config = generate_custom_config(file_name='custom')
- DESCRIPTION:
Function generates custom JSON file containing user customized input under current
working directory which can be used for AutoML execution.
PARAMETERS:
file_name:
Optional Argument.
Specifies the name of the file to be generated. Do not pass the file name
with extension. Extension '.json' is automatically added to specified file name.
Default Value: "custom"
Types: str
RETURNS:
None
EXAMPLES:
# Import either of AutoML or AutoClassifier or AutoRegressor from teradataml.
# As per requirement, generate json file using generate_custom_config() method.
# Generate a default file named "custom.json" file using either of below options.
>>> AutoML.generate_custom_config()
or
>>> AutoClassifier.generate_custom_config()
or
>>> AutoRegressor.generate_custom_config()
# The above code will generate "custom.json" file under the current working directory.
# Generate different file name using "file_name" argument.
>>> AutoML.generate_custom_config("titanic_custom")
or
>>> AutoClassifier.generate_custom_config("titanic_custom")
or
>>> AutoRegressor.generate_custom_config("housing_custom")
# The above code will generate "titanic_custom.json" file under the current working directory.