Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Sketching Algorithms For Approximating Kendall's Tau Rank Correlation

License

NotificationsYou must be signed in to change notification settings

GromitC/Rank-Correlation-Sketches

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kendall’s Tau is a measure of rank correlation between two list of rank vectors. This metric's time complexity isO(n log(n)), which can be slow when used in pairwise comparison tasks like clustering. There is an approximated way to calculate it in constant time, which is described in the work"Sketching Algorithms For Approximating Rank Correlations In Collaborative Filtering Systems". I also include a write up in the repo to simplify the descriptions.

Usage

Just clone the package and putsketch.py to your working directory.

from sketch import KTSketchx1 = [1,3,2,4,5]x2 = [3,2,1,5,4]epsilon = 0.05     #accuracy as the abs. error <= epsilonCI = 0.95          #confidence interval as P(abs. error <= epsilon) >= CIdimension = 5 #size of vectorktsketch = KTSketch(epsilon=epsilon,CI=CI,dim=dimension,seed=0)ktsketch.correlation(x1,x2)

About

Sketching Algorithms For Approximating Kendall's Tau Rank Correlation

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp