Teradata Package for Python Function Reference | 20.00 - best_model_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 - 20.00
- Deployment
- VantageCloud
- VantageCore
- Edition
- Enterprise
- IntelliFlex
- VMware
- Product
- Teradata Package for Python
- Release Number
- 20.00.00.03
- Published
- December 2024
- ft:locale
- en-US
- ft:lastEdition
- 2024-12-19
- dita:id
- TeradataPython_FxRef_Enterprise_2000
- lifecycle
- latest
- Product Category
- Teradata Vantage
- teradataml.hyperparameter_tuner.optimizer.GridSearch.best_model_id
- DESCRIPTION:
Returns the model id of the model with best score.
Note:
"best_model_id" is not supported for non-model trainer functions.
RETURNS:
String representing the best model 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 model id.
>>> optimizer_obj.best_model_id
'SVM_2'