zenogantner/MyMediaLite — Issue #166: abstract definition of overlap-based correlations
Author: zenogantner
Created: 2011-12-03 17:00:13+00:00
State: open
Labels: enhancement

Some correlations like cosine and Jaccard are all based on the overlap between items.

The only difference is the denominator, which could be expressed as a delegate or lambda expression.
This would save some duplicate code.

See also:
http://en.wikipedia.org/wiki/Jaccard_coefficient
http://en.wikipedia.org/wiki/Tversky_index
http://en.wikipedia.org/wiki/Dice%27s_coefficient
http://en.wikipedia.org/wiki/Cosine_similarity