Decision Tree Scoring | Vantage Analytics Library - Decision Tree Scoring - Vantage Analytics Library

Vantage Analytics Library User Guide

Deployment
VantageCloud
VantageCore
Edition
VMware
Enterprise
IntelliFlex
Lake
Product
Vantage Analytics Library
Release Number
2.2.0
Published
June 2025
ft:locale
en-US
ft:lastEdition
2025-07-02
dita:mapPath
ibw1595473364329.ditamap
dita:ditavalPath
iup1603985291876.ditaval
dita:id
zyl1473786378775
Product Category
Teradata Vantage
Using a model built by the decisiontree function, the decisiontreescore function generates SQL statements that score new datasets—that is, CASE statements that classify the predicted value. For example:
SELECT CASE
  WHEN (subset1 expression1) THEN 'Buy'
  WHEN (subset2 expression2) THEN 'Do not Buy'
END
FROM tablename;

The columns in tablename are the same as the columns in the table from which the decisiontree function built the model, except that tablename need not include the predicted or dependent variable column if scoringmethod=score.