Install Model and Python Script Files | Scoring with a model file | Open Analytics Framework - Installing Model and Python Script Files - Teradata Vantage

Teradata® VantageCloud Lake

Deployment
VantageCloud
Edition
Lake
Product
Teradata Vantage
Published
January 2023
ft:locale
en-US
ft:lastEdition
2024-12-11
dita:mapPath
phg1621910019905.ditamap
dita:ditavalPath
pny1626732985837.ditaval
dita:id
phg1621910019905
  1. Install the predictive model and Python script files into the user environment.
    demo_env.install_file(file_path = os.path.join(path_to_files, 'files', 'model.out'), replace = True)
    demo_env.install_file(file_path = os.path.join(path_to_files, 'files', 'scoring.py'), replace = True)

    Out:

    File 'model.out' replaced successfully in the remote user environment 'opaf_my_scoring_env'.
    File 'scoring.py' replaced successfully in the remote user environment 'opaf_my_scoring_env'.
  2. Verify the files have been installed correctly.
    demo_env.files

    Out:

          File             Size        Timestamp
    0    model.out         494848   2024-02-29T21:37:20Z
    1    scoring.py        5748     2024-02-29T21:37:15Z