models | Manage files and libs in User Environment | Open Analytics Framework - models - Teradata VantageCloud Lake

Lake - Analyze Your Data with ClearScape Analytics™

Deployment
VantageCloud
Edition
Lake
Product
Teradata VantageCloud Lake
Release Number
Published
February 2025
ft:locale
en-US
ft:lastEdition
2026-02-20
dita:mapPath
tcl1683670667798.ditamap
dita:ditavalPath
pny1626732985837.ditaval
dita:id
tcl1683670667798

Use the models class property to see a list of models installed in the remote user environment.

This function does not have parameter and returns pandas DataFrame containing models and their details.

Example 1: models property for Python environment

  • Create a remote Python user environment.
    >>> env = create_env('testenv', 'python_3.8.13', 'Test environment')
    User environment testenv created.
  • Define the model file.
    Create a zip file containing all files related to model and use the path to that zip file to install model using install_model API.

    In this example, 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