Vantage Analytics Library Function Example | teradatamlwidgets - VAL Function Example: Linear Regression - 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 following example is shown in the end of the Tutorial.ipynb notebook. This notebook demonstrates the possible pipeline structure. In other words, the Linear Regression VAL output will be used as an input to Linear Regression VAL Predict.

The code has the input, output, function name, and export settings specified.

The export settings are configured for the notebook to automatically populate the function with the parameters.

Input

from teradatamlwidgets import analytic_functions
inputs = ['titanic']
outputs = ['Project_OutLinearRegression']
ui = analytic_functions.Ui(outputs=outputs,
   function="Linear Regression",
   inputs=inputs,
   export_settings="LinReg.json")

Set the parameters

The following parameters are set:
  • On the Required tab:
    • Table is set to titanic.
    • Intputcolumns is set to age and pclass.
    • Response Column is set to fare.
  • On the Optional tab:
    • No values are set for Group Bycolumns.
    • Condition Index Threshold is set to 37.
    • Entrance Criterion and Remove Criterion are set to 3.84.
    • Variance Proportion Threshold is 0.5.

Output

Select Execute to see the resulting table. This table will be used as the input in VAL Example: Linear Regression Predict.


Teradataml Widgets VAL Linear Regression example output