Teradata Package for Python Function Reference | 20.00 - set_model - 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.set_model = set_model(self, model_id)
DESCRIPTION:
    Function to set the model to use for Prediction.
 
PARAMETERS:
    model_id:
        Required Argument.
        Specifies the unique identifier for model.
        Note:
             * Not significant for non-model trainer functions.
        Types: str
 
RETURNS:
    None
 
RAISES:
    TeradataMlException, ValueError
 
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.
    >>> # Set the default trained model.
    >>> optimizer_obj.set_model(model_id="SVM_1")