Teradata Package for Python Function Reference | 20.00 - load: Load Saved Models - 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.opensource.sklearn._class._OpenSource.load = load(self, model_name)
DESCRIPTION:
    Loads the model from Vantage based on the interface object on which this function
    is called.
    For example, if the model in "model_name" argument is statsmodel model, then this
    function raises exception if the interface object is `td_sklearn`.
 
PARAMETERS:
    model_name:
        Required Argument.
        Specifies the name of the model to be loaded.
        Types: str
 
RETURNS:
    The opensource object wrapper.
 
RAISES:
    TeradataMlException if model with name "model_name" does not exist.
 
EXAMPLE:
    >>> from teradataml import td_sklearn
    >>> # Load the model saved in Vantage. Note that the model is saved using
    >>> # `deploy()` of exposed interface object (like `td_sklearn`) or
    >>> # `_OpenSourceObjectWrapper` Object.
    >>> model = td_sklearn.load("linreg_model_ver_1")
    >>> model
    LinearRegression(normalize=True)