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 userid, itemid, prediction::VARCHAR(4) AS prediction FROM KnnRecommenderPredict (
  ON (SELECT * FROM ml_ratings WHERE userid <= 10) AS ratings
    PARTITION BY userid
  ON ml_bias AS bias DIMENSION
  ON ml_weights AS weights DIMENSION
  TOPK(5)
) ORDER BY 1, 3 DESC;