Teradata Package for Python Function Reference on VantageCloud Lake | 17.20 - best_data_id - 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
17.20
Publication Date
November 2022
Content Type
Programming Reference
Publication ID
B700-4500-112K
ft:locale
en-US
ft:lastEdition
2024-02-21
ft:sourceId
FTML
dita:id
TeradataPython_FxRef_Lake_1720
Product Category
Teradata Vantage
teradataml.hyperparameter_tuner.optimizer.GridSearch.best_data_id
DESCRIPTION:
    Returns the "data_id" of a sampled data used for training the best model.
    Note:
        "best_data_id" is not supported for non-model trainer functions.
 
RETURNS:
    String representing the best "data_id"
 
EXAMPLES:
    >>> # Create an instance of the search algorithm called "optimizer_obj" 
    >>> # by referring "__init__()" method.
    >>> # Perform "fit()" method on the optimizer_obj to populate model records.
    >>> # Retrieve the best data id.
    >>> optimizer_obj.best_data_id
        DF_0