Teradata Package for Python Function Reference on VantageCloud Lake - best_score_ - 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
- 20.00.00.03
- Published
- December 2024
- ft:locale
- en-US
- ft:lastEdition
- 2024-12-19
- dita:id
- TeradataPython_FxRef_Lake_2000
- Product Category
- Teradata Vantage
- teradataml.hyperparameter_tuner.optimizer.RandomSearch.best_score_
- DESCRIPTION:
Returns the best score of the model out of all generated models.
Note:
"best_score_" is not supported for non-model trainer functions.
RETURNS:
String representing the best score.
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 score.
>>> optimizer_obj.best_score_
2.060386