fit | AutoDataPrep in AutoML | teradataml - fit - Teradata VantageCloud Lake

Lake - Analyze Your Data with ClearScape Analytics™

Deployment
VantageCloud
Edition
Lake
Product
Teradata VantageCloud Lake
Release Number
Published
February 2025
ft:locale
en-US
ft:lastEdition
2026-02-20
dita:mapPath
tcl1683670667798.ditamap
dita:ditavalPath
pny1626732985837.ditaval
dita:id
tcl1683670667798

Use the fit() function to fit the data for auto data preparation.

Required Parameters

data
Specifies the input data to be used for auto data preparation.
target_column
Specifies the target column to be used for auto data preparation.

Example setup

  • Get the connection to the database to execute the function.
  • You must import the required functions mentioned in the example from teradataml
  • The function returns an error if not supported on the database you are connected to

Load the example data.

>>> load_example_data("teradataml", "titanic")

Create teradataml DataFrames.

>>> titanic = DataFrame.from_table("titanic")

Example 1: Run AutoDataPrep for classification problem

Titanic dataset is used to predict the survival of passengers.

Create an instance of AutoDataPrep.

>>> aprep_obj = AutoDataPrep(task_type="Classification", verbose=2)

Fit the data.

>>> aprep_obj.fit(titanic, titanic.survived)