PageRank Example - Teradata Vantage

Machine Learning Engine Analytic Function Reference

Product
Teradata Vantage
Release Number
8.00
1.0
Published
May 2019
Language
English (United States)
Last Update
2019-11-22
dita:mapPath
blj1506016597986.ditamap
dita:ditavalPath
blj1506016597986.ditaval
dita:id
B700-4003
lifecycle
previous
Product Category
Teradata Vantage™

Input

Input tables are from AllPairsShortestPath Example 1: Unweighted, Unbounded Graph:

  • vertices: callers
  • edges: calls

SQL Call

SELECT * FROM PageRank (
  ON callers AS vertices PARTITION BY callerid
  ON calls AS edges PARTITION BY callerfrom
  USING
  Targetkey ('callerto')
  EdgeWeight ('calls')
  Accumulate ('callerid', 'callername')
) AS dt ORDER BY callerid;

Output

callerid callername pagerank
1 John 0.0890114925255936s
2 Carla 0.122657805325077
3 Simon 0.0957407550854902
4 Celine 0.144421189008967
5 Winston 0.0890114925255936
6 Diana 0.459157265529279