MyMediaLite  3.11
Public Member Functions | Static Public Member Functions | List of all members
SequentialDiversification Class Reference

Sequential diversification More...

Public Member Functions

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

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 More...
 
static float Similarity (ICollection< int > items, SymmetricCorrelationMatrix item_correlation)
 Compute the intra-set similarity of an item collection More...
 

Detailed Description

Sequential diversification

Literature:

Constructor & Destructor Documentation

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 
)
inlinestatic

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 
)
inlinestatic

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: