GenericItemSimilarity ClassNReco.Recommender Class Library
A "generic" IItemSimilarity which takes a static list of precomputed item similarities and bases its responses on that alone. The values may have been precomputed offline by another process, stored in a file, and then read and fed into an instance of this class.
Inheritance Hierarchy

System Object
  NReco.CF.Taste.Impl.Similarity GenericItemSimilarity

Namespace: NReco.CF.Taste.Impl.Similarity
Assembly: NReco.Recommender (in NReco.Recommender.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax

public sealed class GenericItemSimilarity : IItemSimilarity, 
	IRefreshable

The GenericItemSimilarity type exposes the following members.

Constructors

  NameDescription
Public methodGenericItemSimilarity(IEnumerable GenericItemSimilarity ItemItemSimilarity )
Initializes a new instance of the GenericItemSimilarity class
Public methodGenericItemSimilarity(IEnumerable GenericItemSimilarity ItemItemSimilarity , Int32)
Initializes a new instance of the GenericItemSimilarity class
Public methodGenericItemSimilarity(IItemSimilarity, IDataModel)
Initializes a new instance of the GenericItemSimilarity class
Public methodGenericItemSimilarity(IItemSimilarity, IDataModel, Int32)
Initializes a new instance of the GenericItemSimilarity class
Top
Methods

  NameDescription
Public methodAllSimilarItemIDs
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodItemSimilarities
Public methodItemSimilarity
Public methodRefresh
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Remarks

This is perhaps the best IItemSimilarity to use with GenericItemBasedRecommender, for now, since the point of item-based recommenders is that they can take advantage of the fact that item similarity is relatively static, can be precomputed, and then used in computation to gain a significant performance advantage.
See Also