Vantage Analytics Library Function Example | teradatamlwidgets - VAL Example: Linear Regression Predict - 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

The input for this example is Customer but also includes "dssDB. Project_OutLinearRegression" which was the output table name specified in VAL Function Example: Linear Regression.

Input

inputs = ['titanic', 'Project_OutLinearRegression']
outputs = ['Project_OutLinearRegressionPredict']
ui = analytic_functions.Ui(outputs=outputs,
   function="Linear Regression Predict",
   inputs=inputs,
   export_settings="LinRegPredict.json")

Set the parameters

The following parameters are set:
  • On the Required tab:
    • For input_A_role, Table is set to titanic.
    • For linear_regression, Table is set to Project_OutLinearRegression.
  • On the Optional tab:
    • Index Columns is set to SURVIVED.
    • Response Column is set to fare.
    • Accumulate is set to age and pclass.

Output

The Linear Regression Predict VAL table is shown, which is based on the Linear Regression VAL function.


Teradataml Widgets VAL Linear Regression Predict example output