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
Published
March 2024
Language
English (United States)
Last Update
2024-04-10
dita:id
TeradataPython_FxRef_Enterprise_2000
Product Category
Teradata Vantage
teradataml.automl.__init__.AutoML.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 Arugment.
        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")