1.1 - 8.10 - DecisionTree Syntax - Teradata Vantage

Teradata Vantage™ - Machine Learning Engine Analytic Function Reference

Product
Teradata Vantage
Release Number
1.1
8.10
Release Date
October 2019
Content Type
Programming Reference
Publication ID
B700-4003-079K
Language
English (United States)

Version 1.30

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;