DecisionTree Function Syntax | Teradata Vantage - DecisionTree Syntax - Teradata Vantage

Machine Learning Engine Analytic Function Reference

Product
Teradata Vantage
Release Number
9.02
9.01
2.0
1.3
Published
February 2022
Language
English (United States)
Last Update
2022-02-10
dita:mapPath
rnn1580259159235.ditamap
dita:ditavalPath
ybt1582220416951.ditaval
dita:id
B700-4003
lifecycle
previous
Product Category
Teradata Vantageā„¢

Version 1.31

SELECT * FROM DecisionTree (
  { ON { table | view | (query) } AS InputTable |
    ON { table | view | (query) } AS AttributeTable
    ON { table | view | (query) } AS ResponseTable
  }
  [ ON { table | view | (query) } AS CategoricalAttributeTable ] 
  [ ON { table | view | (query) } AS SplitsTable ]
  OUT TABLE OutputTable (output_table)
  [ OUT TABLE FinalResponseTable (final_response_table) ]
  [ OUT TABLE IntermediateSplitsTable (intermediate_splits_table) ]
  USING
  AttributeNameColumns ('attribute_name_column' [,...])
  AttributeValueColumn ('attribute_value_column')
  ResponseColumn ('response_column')
  IDColumns ('id_column' [,...])
  [ CategoricalEncoding ({ 'GrayCode' | 'Hashing' }) ]
  [ SplitsValueColumn ('splits_valcol') ]
  [ ApproxSplits ({'true'|'t'|'yes'|'y'|'1'|'false'|'f'|'no'|'n'|'0'}) ]
  [ NumSplits (num_splits_to_consider) ]
  [ MinNodeSize (minimum_split_size) ]
  [ MaxDepth (max_depth) ]
  [ Weighted ({'true'|'t'|'yes'|'y'|'1'|'false'|'f'|'no'|'n'|'0'}) ]
  [ WeightColumn ('weight_column') ]
  [ SplitMeasure ( { 'gini' | 'entropy' | 'chisquare' } ) ]
  [ OutputProb {'true'|'t'|'yes'|'y'|'1'|'false'|'f'|'no'|'n'|'0'} ]
  [ ResponseProbDistType ({ 'laplace' | 'frequency' | 'rawcount' }) ]
) AS alias;