MyMediaLite  3.08
Public Member Functions | Static Public Member Functions
SequentialDiversification Class Reference

Sequential diversification. More...

List of all members.

Public Member Functions

IList< int > DiversifySequential (IList< int > item_list, float diversification_parameter)
 Diversify an item list.
 SequentialDiversification (SymmetricCorrelationMatrix item_correlation)
 Constructor.

Static Public Member Functions

static float Similarity (int item_id, ICollection< int > items, SymmetricCorrelationMatrix item_correlation)
 Compute similarity between one item and a collection of items.
static float Similarity (ICollection< int > items, SymmetricCorrelationMatrix item_correlation)
 Compute the intra-set similarity of an item collection.

Detailed Description

Sequential diversification.

Literature:


Constructor & Destructor Documentation

SequentialDiversification ( SymmetricCorrelationMatrix  item_correlation) [inline]

Constructor.

Parameters:
item_correlationthe similarity measure to use for diversification

Member Function Documentation

IList<int> DiversifySequential ( IList< int >  item_list,
float  diversification_parameter 
) [inline]

Diversify an item list.

Parameters:
item_lista list of items
diversification_parameterthe diversification parameter (higher means more diverse)
Returns:
a list re-ordered to ensure maximum diversity at the top of the list
static float Similarity ( int  item_id,
ICollection< int >  items,
SymmetricCorrelationMatrix  item_correlation 
) [inline, static]

Compute similarity between one item and a collection of items.

Parameters:
item_idthe item ID
itemsa collection of items
item_correlationthe similarity measure to use
Returns:
the similarity between the item and the collection
static float Similarity ( ICollection< int >  items,
SymmetricCorrelationMatrix  item_correlation 
) [inline, static]

Compute the intra-set similarity of an item collection.

Parameters:
itemsa collection of items
item_correlationthe similarity measure to use
Returns:
the intra-set similarity of the collection

The documentation for this class was generated from the following file: