Teradata Package for Python Function Reference | 20.00 - fit - 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
- lifecycle
- latest
- Product Category
- Teradata Vantage
- teradataml.automl.__init__.AutoClassifier.fit = fit(self, data, target_column)
- DESCRIPTION:
Function triggers the AutoML run. It is designed to handle both
regression and classification tasks depending on the specified "task_type".
PARAMETERS:
data:
Required Argument.
Specifies the input teradataml DataFrame.
Types: teradataml Dataframe
target_column:
Required Argument.
Specifies target column of dataset.
Types: str or ColumnExpression
RETURNS:
None
RAISES:
TeradataMlException, TypeError, ValueError
EXAMPLES:
# Create an instance of the AutoML called "automl_obj"
# by referring "AutoML() or AutoRegressor() or AutoClassifier()" method.
# Perform fit() operation on the "automl_obj".
# Example 1: Passing column expression for target column.
>>> automl_obj.fit(data = housing_train, target_col = housing_train.price)
# Example 2: Passing name of target column.
>>> automl_obj.fit(data = housing_train, target_col = "price")