Utils Class Reference

Class containing utility functions. More...

List of all members.

Public Member Functions

delegate void task ()
 Delegate definition necessary to define MeasureTime.

Static Public Member Functions

static void DisplayAttributeStats (SparseBooleanMatrix user_attributes, SparseBooleanMatrix item_attributes)
 Display statistics for user and item attributes.
static void DisplayDataStats (IPosOnlyFeedback training_data, IPosOnlyFeedback test_data, SparseBooleanMatrix user_attributes, SparseBooleanMatrix item_attributes)
 Display data statistics for item recommendation datasets.
static void DisplayDataStats (IRatings train, IRatings test, SparseBooleanMatrix user_attributes, SparseBooleanMatrix item_attributes, bool display_overlap)
 Display dataset statistics.
static void DisplayDataStats (IRatings train, IRatings test, SparseBooleanMatrix user_attributes, SparseBooleanMatrix item_attributes)
 Display dataset statistics.
static Type[] GetTypesInNamespace (string name_space)
 Get all types of a namespace.
static TimeSpan MeasureTime (task t)
 Measure how long an action takes.
static Func< A, R > Memoize< A, R > (this Func< A, R > f)
 Memoize a function.
static void Shuffle< T > (IList< T > list)
 Shuffle a list in-place.

Detailed Description

Class containing utility functions.


Member Function Documentation

static void DisplayAttributeStats ( SparseBooleanMatrix  user_attributes,
SparseBooleanMatrix  item_attributes 
) [inline, static]

Display statistics for user and item attributes.

Parameters:
user_attributes the user attributes
item_attributes the item attributes
static void DisplayDataStats ( IPosOnlyFeedback  training_data,
IPosOnlyFeedback  test_data,
SparseBooleanMatrix  user_attributes,
SparseBooleanMatrix  item_attributes 
) [inline, static]

Display data statistics for item recommendation datasets.

Parameters:
training_data the training dataset
test_data the test dataset
user_attributes the user attributes
item_attributes the item attributes
static void DisplayDataStats ( IRatings  train,
IRatings  test,
SparseBooleanMatrix  user_attributes,
SparseBooleanMatrix  item_attributes,
bool  display_overlap 
) [inline, static]

Display dataset statistics.

Parameters:
train the training data
test the test data
user_attributes the user attributes
item_attributes the item attributes
display_overlap if set true, display the user/item overlap between train and test
static void DisplayDataStats ( IRatings  train,
IRatings  test,
SparseBooleanMatrix  user_attributes,
SparseBooleanMatrix  item_attributes 
) [inline, static]

Display dataset statistics.

Parameters:
train the training data
test the test data
user_attributes the user attributes
item_attributes the item attributes
static Type [] GetTypesInNamespace ( string  name_space  )  [inline, static]

Get all types of a namespace.

Parameters:
name_space a string describing the namespace
Returns:
an array of Type objects
static TimeSpan MeasureTime ( task  t  )  [inline, static]

Measure how long an action takes.

Parameters:
t A task defining the action to be measured
Returns:
The TimeSpan it takes to perform the action
static Func<A, R> Memoize< A, R > ( this Func< A, R >  f  )  [inline, static]

Memoize a function.

Parameters:
f The function to memoize
Returns:
a version of the function that remembers past function results
static void Shuffle< T > ( IList< T >  list  )  [inline, static]

Shuffle a list in-place.

Fisher-Yates shuffle, see http://en.wikipedia.org/wiki/Fisher–Yates_shuffle

delegate void task (  ) 

Delegate definition necessary to define MeasureTime.


The documentation for this class was generated from the following file:
Generated on Sat Oct 8 18:11:38 2011 for MyMediaLite by  doxygen 1.6.3