7.00.02 - SQL-MapReduce Call - Aster Analytics

Teradata Aster® Analytics Foundation User GuideUpdate 2

Product
Aster Analytics
Release Number
7.00.02
Release Date
September 2017
Content Type
Programming Reference
User Guide
Publication ID
B700-1022-700K
Language
English (United States)

This call uses default values for the MaxDepth, MinNodeSize, and Variance arguments, and builds 50 trees on two worker nodes. It sets both seed values to 100 for repeatability. Because TreeType is 'classification' and there are 12 prediction variables, Mtry is 3 (round(sqrt(12)).

SELECT * FROM Forest_Drive (
  ON (SELECT 1)
  PARTITION BY 1
  InputTable ('housing_train')
  OutputTable ('rft_model')
  TreeType ('classification')
  ResponseColumn ('homestyle')
  NumericInputs ('price','lotsize','bedrooms','bathrms','stories','garagepl')
  CategoricalInputs
   ('driveway','recroom','fullbase','gashw','airco','prefarea')
  MaxDepth (12)
  MinNodeSize (1)
  NumTrees (50)
  Variance (0.0)
  Mtry ('3')
  MtrySeed ('100')
  Seed ('100')
);