7.00.02 - SQL-MapReduce Call - Aster Analytics

Teradata Aster® Analytics Foundation User GuideUpdate 2

Product
Aster Analytics
Release Number
7.00.02
Published
September 2017
Content Type
Programming Reference
User Guide
Publication ID
B700-1022-700K
Language
English (United States)
Last Update
2018-04-17
SELECT * FROM KNN (
  ON (SELECT 1)
  PARTITION BY 1
  TrainingTable ('computers_train1_clustered')
  TestTable ('computers_test1')
  K (50)
  ResponseColumn ('computer_category')
  DistanceFeatures ('price', 'speed', 'hd', 'ram', 'screen')
  VotingWeight (1)
  IDColumn ('id')
  OutputTable ('knn_output')
);