Teradata Package for Python Function Reference | 20.00 - load - 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.opensource.td_sklearn.load = load(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)