Teradata Package for Python Function Reference | 20.00 - best_params_ - 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.hyperparameter_tuner.optimizer.RandomSearch.best_params_
DESCRIPTION:
    Returns the parameters used for the model with best score.
    Note:
        "best_params_" is not supported for non-model trainer functions.
 
RETURNS:
    dict
 
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 parameters.
    >>> optimizer_obj.best_params_
        {'input_columns': ['MedInc', 'HouseAge', 'AveRooms', 
                          'AveBedrms', 'Population', 'AveOccup', 'Latitude', 'Longitude'], 
         'response_column': 'MedHouseVal', 'model_type': 'regression', 
         'batch_size': 50, 'iter_max': 301, 'lambda1': 0.1, 'alpha': 0.5, 
         'iter_num_no_change': 60, 'tolerance': 0.01, 'intercept': False, 
         'learning_rate': 'INVTIME', 'initial_data': 0.5, 'decay_rate': 0.5, 
         'momentum': 0.6, 'nesterov_optimization': True, 'local_sgd_iterations': 1, 
         'data': '"ALICE"."ml__select__1696595493985650"'}