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_lightgbm.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_lightgbm`.
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_lightgbm
>>> # Load the model saved in Vantage. Note that the model is saved using
>>> # `deploy()` of exposed interface object (like `td_lightgbm`) or
>>> # `_OpenSourceObjectWrapper` Object.
>>> model = td_lightgbm.load("lgb_model_ver_1")
>>> model
LGBMClassifier()