Teradata Package for Python Function Reference on VantageCloud Lake - 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 on VantageCloud Lake

Deployment
VantageCloud
Edition
Lake
Product
Teradata Package for Python
Release Number
20.00.00.03
Published
December 2024
Language
English (United States)
Last Update
2024-12-19
dita:id
TeradataPython_FxRef_Lake_2000
Product Category
Teradata Vantage
teradataml.scriptmgmt.UserEnv.UserEnv.models
DESCRIPTION:
    A class property that returns list of models installed in remote user environment.
 
PARAMETERS:
    None
 
RETURNS:
    Pandas DataFrame containing models and their details.
 
RAISES:
    TeradataMlException
 
EXAMPLES:
    # Create a remote user environment.
    >>> env = create_env('testenv', 'python_3.8.13', 'Test environment')
    User environment testenv created.
 
    # User should create a zip file containing all files related to model
    # and use path to that zip file to install model using install_model()
    # API. Let's assume that all models files are zipped under 'large_model.zip'
    >>> model = 'large_model.zip'
 
    # Install the model in the 'testenv' environment.
    >>> env.install_model(model_path = model)
    Request for install_model is completed successfully.
                                   Claim Id  File/Libs/Model    Method Name               Stage             Timestamp  Additional Details
    0  70ba8bb6-9c0b-41f1-af44-5fd1b9e31c7d  large_model.zip  install_model  Endpoint Generated  2023-10-31T07:34:21Z
    1  70ba8bb6-9c0b-41f1-af44-5fd1b9e31c7d  large_model.zip  install_model       File Uploaded  2023-10-31T07:35:37Z
    2  70ba8bb6-9c0b-41f1-af44-5fd1b9e31c7d  large_model.zip  install_model      File Installed  2023-10-31T07:35:38Z
 
    # List models installed in the user environment.
    >>> env.models
             Model  Size             Timestamp
    0  large_model  6144  2023-10-31T07:35:38Z