Returns the degree of similarity, of two items, based on the preferences that users have expressed for
the items.
Namespace: NReco.CF.Taste.SimilarityAssembly: NReco.Recommender (in NReco.Recommender.dll) Version: 1.0.0.0 (1.0.0.0)
double ItemSimilarity(
long itemID1,
long itemID2
)
double ItemSimilarity(
long itemID1,
long itemID2
)
Function ItemSimilarity (
itemID1 As Long,
itemID2 As Long
) As Double
Function ItemSimilarity (
itemID1 As Long,
itemID2 As Long
) As Double
double ItemSimilarity(
long long itemID1,
long long itemID2
)
double ItemSimilarity(
long long itemID1,
long long itemID2
)
abstract ItemSimilarity :
itemID1 : int64 *
itemID2 : int64 -> float
abstract ItemSimilarity :
itemID1 : int64 *
itemID2 : int64 -> float
Return Value
Type:
Doublesimilarity between the items, in [-1,1] or {@link Double#NaN} similarity is unknown
Throws NReco.CF.Taste.Common.NoSuchItemException if either item is known to be non-existent in the data.
Throws TasteException if an error occurs while accessing the data.