predict | AutoML | teradataml - predict - Teradata Package for Python

Teradata® Package for Python User Guide

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-09
dita:mapPath
nvi1706202040305.ditamap
dita:ditavalPath
plt1683835213376.ditaval
dita:id
rkb1531260709148
Product Category
Teradata Vantage

Use the predict() function to generate prediction on either default test data or any other data using model rank in leaderboard and display performance metrics of the specified model.

If test data contains target column, then it displays both prediction and performance metrics, otherwise it displays only prediction.

Optional Arguments:

  • data: Specifies the dataset (teradataml DataFrame) on which prediction and performance metrics needs to be generated using model rank in leaderboard.

    When this argument is not specified, default test data is used. Default test data is the dataset generated at the time of training.

  • rank: Specifies the rank of the model in the leaderboard to be used for prediction.

    Default value is 1.

This function returns pandas DataFrame with prediction.