C# Class MyMediaLite.Correlation.BidirectionalConditionalProbability

Class for storing and computing 'bi-directional' conditional probabilities

A generalization of both conditional probability (alpha=1) and cosine similarity (alpha=0.5).

Literature: Fabio Aiolli: Efficient top-n recommendation for very large scale binary rated datasets. RecSys 2013. http://www.math.unipd.it/~aiolli/PAPERS/MSD_final.pdf

Inheritance: MyMediaLite.Correlation.BinaryDataAsymmetricCorrelationMatrix
显示文件 Open project: zenogantner/MyMediaLite

Public Methods

Method Description
BidirectionalConditionalProbability ( int num_entities, float alpha ) : System

Creates an object of type BidirectionalConditionalProbability

Protected Methods

Method Description
ComputeCorrelationFromOverlap ( float overlap, float count_x, float count_y ) : float

Method Details

BidirectionalConditionalProbability() public method

Creates an object of type BidirectionalConditionalProbability
public BidirectionalConditionalProbability ( int num_entities, float alpha ) : System
num_entities int the number of entities
alpha float alpha parameter
return System

ComputeCorrelationFromOverlap() protected method

protected ComputeCorrelationFromOverlap ( float overlap, float count_x, float count_y ) : float
overlap float
count_x float
count_y float
return float