Teradata Package for Python Function Reference on VantageCloud Lake - 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 on VantageCloud Lake

Deployment
VantageCloud
Edition
Lake
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_Lake_2000
Product Category
Teradata Vantage
teradataml.automl.__init__.AutoRegressor.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")