1.1 - 8.10 - KNNRecommender 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.7

SELECT * FROM KNNRecommender (
  ON input_table AS InputTable
  OUT TABLE WeightModelTable (weight_model_table)
  OUT TABLE BiasModelTable (bias_model_table)
  [ OUT TABLE NearestItemsTable (item_neighbors_table) ]
  USING
  [ UserIDColumn ('userid_column')
    ItemIDColumn ('itemid_column')
    RatingColumn ('rating_column')
  ]
  [ K (number_of_item_neighbors) ]
  [ LearningRate (learning_rate) ]
  [ MaxIterNum (max_iteration_number) ]
  [ StopThreshold (threshold) ]
  [ SimilarityMethod ({ 'pearson' | 'adjustedcosine' }) ]
) AS alias;